Class UnitStyleFormat
Represents the parameters to convert linear and angular units to its string representation.
Inheritance
Inherited Members
Namespace: netDxf.Units
Assembly: CADability.dll
Syntax
public class UnitStyleFormat
Constructors
| Improve this Doc View SourceUnitStyleFormat()
Initializes a new instance of the UnitStyleFormat class.
Declaration
public UnitStyleFormat()
Properties
| Improve this Doc View SourceAngularDecimalPlaces
Gets or sets the number of decimal places for angular units.
Declaration
public short AngularDecimalPlaces { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int16 |
DecimalSeparator
Gets or set the decimal separator.
Declaration
public string DecimalSeparator { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
DegreesSymbol
Gets or set the angle degrees symbol.
Declaration
public string DegreesSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
FeetInchesSeparator
Gets or sets the separator between feet and inches.
Declaration
public string FeetInchesSeparator { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
FeetSymbol
Gets or set the feet symbol.
Declaration
public string FeetSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
FractionHeightScale
Gets or sets the scale of fractions relative to dimension text height.
Declaration
public double FractionHeightScale { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
FractionType
Gets or sets the fraction format for architectural or fractional units.
Declaration
public FractionFormatType FractionType { get; set; }
Property Value
| Type | Description |
|---|---|
| FractionFormatType |
Remarks
Horizontal stacking
Diagonal stacking
Not stacked (for example, 1/2)
GradiansSymbol
Gets or set the angle gradians symbol.
Declaration
public string GradiansSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
InchesSymbol
Gets or set the inches symbol.
Declaration
public string InchesSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LinearDecimalPlaces
Gets or sets the number of decimal places for linear units.
Declaration
public short LinearDecimalPlaces { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int16 |
Remarks
For architectural and fractional the precision used for the minimum fraction is 1/2^LinearDecimalPlaces.
MinutesSymbol
Gets or set the angle minutes symbol.
Declaration
public string MinutesSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RadiansSymbol
Gets or set the angle radians symbol.
Declaration
public string RadiansSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SecondsSymbol
Gets or set the angle seconds symbol.
Declaration
public string SecondsSymbol { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
SuppressAngularLeadingZeros
Suppresses leading zeros in angular decimal dimensions (for example, 0.5000 becomes .5000).
Declaration
public bool SuppressAngularLeadingZeros { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SuppressAngularTrailingZeros
Suppresses trailing zeros in angular decimal dimensions (for example, 12.5000 becomes 12.5).
Declaration
public bool SuppressAngularTrailingZeros { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SuppressLinearLeadingZeros
Suppresses leading zeros in linear decimal dimensions (for example, 0.5000 becomes .5000).
Declaration
public bool SuppressLinearLeadingZeros { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SuppressLinearTrailingZeros
Suppresses trailing zeros in linear decimal dimensions (for example, 12.5000 becomes 12.5).
Declaration
public bool SuppressLinearTrailingZeros { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SuppressZeroFeet
Suppresses zero feet in architectural dimensions.
Declaration
public bool SuppressZeroFeet { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SuppressZeroInches
Suppresses zero inches in architectural dimensions.
Declaration
public bool SuppressZeroInches { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |