Table of Contents

Class DimensionStyle

Namespace
CADability.Attribute
Assembly
CADability.dll

A named attribute which defines the appearance of Dimension objects: the layout of the dimension line, extension lines and symbols (arrows), the font, size and placement of the dimension text, the number format, units and tolerances, and which dimension types (points, coordinates, angle, radius, diameter, location) it applies to. Dimension styles are kept in the DimensionStyleList of the project and are presented in the property grid, where they can be edited.

public class DimensionStyle : PropertyEntryImpl, IPropertyEntry, IShowProperty, ISerializable, INamedAttribute, ICommandHandler
Inheritance
DimensionStyle
Implements
Inherited Members

Constructors

DimensionStyle()

Creates a dimension style with no name and all settings unset (null strings, zero sizes, no colors). Since many settings have no useful zero value, a new style is usually obtained by cloning an existing one (Clone()), e.g. the Current style of the project's DimensionStyleList.

public DimensionStyle()

DimensionStyle(SerializationInfo, StreamingContext)

Constructor required by deserialization

protected DimensionStyle(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

SerializationInfo

context StreamingContext

StreamingContext

Properties

AngleFlags

The settings for angle dimensioning as a combination of DimensionStyle.EAngleFlag bits, also available as DimAngleFourPoint and DimAngleBisection. Setting it raises PropertyChangedEvent.

public DimensionStyle.EAngleFlag AngleFlags { get; set; }

Property Value

DimensionStyle.EAngleFlag

AngleText

The way the value of an angle dimension is written: decimal degrees, degrees/minutes/seconds, gradians, radians or the length of the arc; see DimensionStyle.EAngleText. Setting it raises PropertyChangedEvent.

public DimensionStyle.EAngleText AngleText { get; set; }

Property Value

DimensionStyle.EAngleText

CenterMarkSize

The size of the center mark of a radius or diameter dimension in model units (DXF: DIMCEN). Stored and exchanged with DXF, but the current layout does not draw a center mark. Setting it raises PropertyChangedEvent.

public double CenterMarkSize { get; set; }

Property Value

double

ContextMenu

Overrides ContextMenu, returns the context menu with the id "MenuId.DimStyleEntry".

public override MenuWithHandler[] ContextMenu { get; }

Property Value

MenuWithHandler[]

DimAngle

The style may be used for angle dimensions (DimAngle, DimAngle). Setting it raises PropertyChangedEvent.

public bool DimAngle { get; set; }

Property Value

bool

DimAngleBisection

The half angle (bisector) is dimensioned (DimAngleBisection). Shown in the property page, but not evaluated by the current layout. Setting it raises PropertyChangedEvent.

public bool DimAngleBisection { get; set; }

Property Value

bool

DimAngleFourPoint

The angle is defined by two lines of two points each (DimAngleFourPoint). Stored only, not evaluated by the current layout. Setting it raises PropertyChangedEvent.

public bool DimAngleFourPoint { get; set; }

Property Value

bool

DimBreakDimLine

The dimension line is interrupted where it crosses the text, leaving a margin of DimensionLineGap around it; it stays continuous when the text is rotated (DimBreakDimLine). Setting it raises PropertyChangedEvent.

public bool DimBreakDimLine { get; set; }

Property Value

bool

DimCoord

The style may be used for coordinate dimensions (DimCoord, DimCoord). Setting it raises PropertyChangedEvent.

public bool DimCoord { get; set; }

Property Value

bool

DimDiameter

The style may be used for diameter dimensions (DimDiameter, DimDiameter). Setting it raises PropertyChangedEvent.

public bool DimDiameter { get; set; }

Property Value

bool

DimFixedDimLine

The dimension line keeps a fixed position (DimFixedDimLine). Stored only, not evaluated by the current layout. Setting it raises PropertyChangedEvent.

public bool DimFixedDimLine { get; set; }

Property Value

bool

DimFontBold

The dimension text is bold (DimFontBold). Stored, but the font style is not applied by the current layout. Setting it raises PropertyChangedEvent.

public bool DimFontBold { get; set; }

Property Value

bool

DimFontItalic

The dimension text is italic (DimFontItalic). Stored, but the font style is not applied by the current layout. Setting it raises PropertyChangedEvent.

public bool DimFontItalic { get; set; }

Property Value

bool

DimFontStrikeOut

The dimension text is struck out (DimFontStrikeOut). Stored, but the font style is not applied by the current layout. Setting it raises PropertyChangedEvent.

public bool DimFontStrikeOut { get; set; }

Property Value

bool

DimFontUnderline

The dimension text is underlined (DimFontUnderline). Stored, but the font style is not applied by the current layout. Setting it raises PropertyChangedEvent.

public bool DimFontUnderline { get; set; }

Property Value

bool

DimForceTrailingZero

Decimal places are always written, padded with zeros up to the precision given by Round, e.g. "12.50" instead of "12.5" with a precision of 0.01 (DimForceTrailingZero). Setting it raises PropertyChangedEvent.

public bool DimForceTrailingZero { get; set; }

Property Value

bool

DimLineColor

The color of the dimension line, of the open and closed arrow symbols, of the text frame (DimTxtRect) and of the pieces of dimension line drawn behind outside symbols. The default is the default color of the ColorList. Setting it raises PropertyChangedEvent.

public ColorDef DimLineColor { get; set; }

Property Value

ColorDef

DimLineExtension

The length by which the dimension line of a point dimension is extended beyond the outermost extension lines, in model units (DXF: DIMDLE). 0 means the dimension line ends at the extension lines. Setting it raises PropertyChangedEvent.

public double DimLineExtension { get; set; }

Property Value

double

DimLineWidth

The line width of the dimension line and of the symbols. null means the default line width. Setting it raises PropertyChangedEvent.

public LineWidth DimLineWidth { get; set; }

Property Value

LineWidth

DimLocation

The style may be used for labelling a location (DimLocation, DimLocation). Setting it raises PropertyChangedEvent.

public bool DimLocation { get; set; }

Property Value

bool

DimMultiLine

A point or coordinate dimension with more than two points is drawn with one dimension line per point: the first point is the reference, every further point gets its own dimension line at a distance of LineIncrement from the previous one (needs LineIncrement greater than 0). When false, the points are dimensioned in a single chain on one dimension line (DimMultiLine). Setting it raises PropertyChangedEvent.

public bool DimMultiLine { get; set; }

Property Value

bool

DimNoDimLine

No dimension line is drawn at all, only the extension lines, the symbols and the text (DimNoDimLine). Setting it raises PropertyChangedEvent.

public bool DimNoDimLine { get; set; }

Property Value

bool

DimNoExtLine

No extension lines are drawn from the measured points to the dimension line; only a short piece of ExtLineExtension length across the dimension line remains when that is not 0 (DimNoExtLine). Setting it raises PropertyChangedEvent.

public bool DimNoExtLine { get; set; }

Property Value

bool

DimNoExtLine1

The first extension line is suppressed (DimNoExtLine1, DXF: DIMSE1). Stored and exchanged with DXF, not evaluated by the current layout, which only knows DimNoExtLine. Setting it raises PropertyChangedEvent.

public bool DimNoExtLine1 { get; set; }

Property Value

bool

DimNoExtLine2

The second extension line is suppressed (DimNoExtLine2, DXF: DIMSE2). Stored and exchanged with DXF, not evaluated by the current layout, which only knows DimNoExtLine. Setting it raises PropertyChangedEvent.

public bool DimNoExtLine2 { get; set; }

Property Value

bool

DimNoOutsideSymbols

No symbols are drawn when they are placed outside the extension lines (DimNoOutsideSymbols). Stored only, not evaluated by the current layout. Setting it raises PropertyChangedEvent.

public bool DimNoOutsideSymbols { get; set; }

Property Value

bool

DimPoints

The style may be used for dimensions of the distance between points (DimPoints, DimPoints). Setting it raises PropertyChangedEvent.

public bool DimPoints { get; set; }

Property Value

bool

DimRadius

The style may be used for radius dimensions (DimRadius, DimRadius). Setting it raises PropertyChangedEvent.

public bool DimRadius { get; set; }

Property Value

bool

DimRadiusBend

The dimension line of a radius or diameter dimension bends at the reference point and continues horizontally, and the text is placed on that horizontal part (DimRadiusBend). When false, the text sits on the straight dimension line. Setting it raises PropertyChangedEvent.

public bool DimRadiusBend { get; set; }

Property Value

bool

DimTextOutsideForceDimensionLine

When the text is placed outside the extension lines, the dimension line is extended until it reaches the text (DimTextOutsideForceDimensionLine). Setting it raises PropertyChangedEvent.

public bool DimTextOutsideForceDimensionLine { get; set; }

Property Value

bool

DimTxtAlt

A second (alternate) value, scaled by ScaleAlt, rounded by RoundAlt and followed by TextPostfixAlt, is shown in square brackets (DimTxtAlt). Stored only, the current layout does not draw the alternate text. Setting it raises PropertyChangedEvent.

public bool DimTxtAlt { get; set; }

Property Value

bool

DimTxtAltFractional

The alternate (second) text is written as a fraction (DimTxtAltFractional). Stored only, the current layout does not draw the alternate text. Setting it raises PropertyChangedEvent.

public bool DimTxtAltFractional { get; set; }

Property Value

bool

DimTxtAutomatic

A dimension of two points moves its text outside when it is wider than the distance between the extension lines (DimTxtAutomatic). Setting it raises PropertyChangedEvent.

public bool DimTxtAutomatic { get; set; }

Property Value

bool

DimTxtDialog

The dimension text should be asked for in a dialog when the dimension is created (DimTxtDialog). Stored only, not evaluated. Setting it raises PropertyChangedEvent.

public bool DimTxtDialog { get; set; }

Property Value

bool

DimTxtDinBau

The value is written in the German building construction format "DIN Bau": millimetres superscript, centimetres normal, metres separated by a point (DimTxtDinBau). The property page sets it together with Round = -1; the format is not implemented in the current layout. Setting it raises PropertyChangedEvent.

public bool DimTxtDinBau { get; set; }

Property Value

bool

DimTxtFractional

The value is written as a fraction, e.g. "3 1/8" (DimTxtFractional). The formatting itself is controlled by Round: a value greater than 1 (2, 4, 8, 16, 32, 64) is the largest denominator. The property page sets this flag together with such a precision. Setting it raises PropertyChangedEvent.

public bool DimTxtFractional { get; set; }

Property Value

bool

DimTxtInsideHor

The text of an angle dimension stays horizontal instead of following the direction of the dimension arc (DimTxtInsideHor, DXF: DIMTIH). Setting it raises PropertyChangedEvent.

public bool DimTxtInsideHor { get; set; }

Property Value

bool

DimTxtLimits

The value is shown as upper and lower limit computed from the tolerances instead of value plus tolerances (DimTxtLimits). The property page offers it as alternative to DimTxtTolerances; it is stored only, the current layout does not draw limits. Setting it raises PropertyChangedEvent.

public bool DimTxtLimits { get; set; }

Property Value

bool

DimTxtOutside

The text is always placed outside, to the right of the second extension line, instead of between the extension lines (DimTxtOutside). Setting it raises PropertyChangedEvent.

public bool DimTxtOutside { get; set; }

Property Value

bool

DimTxtOutsideHor

Text placed outside the extension lines stays horizontal (DimTxtOutsideHor, DXF: DIMTOH). Stored and exchanged with DXF, not evaluated by the current layout. Setting it raises PropertyChangedEvent.

public bool DimTxtOutsideHor { get; set; }

Property Value

bool

DimTxtRect

A rectangle is drawn around the text of a point dimension, with a margin of DimensionLineGap (DimTxtRect). Setting it raises PropertyChangedEvent.

public bool DimTxtRect { get; set; }

Property Value

bool

DimTxtRotate60

The text is rotated by 60 degrees against the dimension line (DimTxtRotate60). Setting it to true clears DimTxtRotate90 and DimTxtRotateAutomatic. Setting it raises PropertyChangedEvent.

public bool DimTxtRotate60 { get; set; }

Property Value

bool

DimTxtRotate90

The text is rotated by 90 degrees against the dimension line (DimTxtRotate90). The three rotation settings DimTxtRotate90, DimTxtRotate60 and DimTxtRotateAutomatic exclude each other: setting one of them to true clears the other two. Setting it raises PropertyChangedEvent.

public bool DimTxtRotate90 { get; set; }

Property Value

bool

DimTxtRotateAutomatic

The text is rotated by 90 degrees when it is wider than the distance between the extension lines, otherwise it stays parallel to the dimension line (DimTxtRotateAutomatic). Setting it to true clears DimTxtRotate90 and DimTxtRotate60. Setting it raises PropertyChangedEvent.

public bool DimTxtRotateAutomatic { get; set; }

Property Value

bool

DimTxtSizePaper

The text size refers to paper coordinates rather than model coordinates (DimTxtSizePaper). Stored only, not evaluated by the current layout. Setting it raises PropertyChangedEvent.

public bool DimTxtSizePaper { get; set; }

Property Value

bool

DimTxtTolerances

PlusTolerance and MinusTolerance are shown stacked after the value in the size TextSizeTol (DimTxtTolerances). A Dimension with tolerance texts of its own shows those regardless of this setting. Setting it raises PropertyChangedEvent.

public bool DimTxtTolerances { get; set; }

Property Value

bool

DimensionLineGap

The margin around the text, in model units, that is kept free of the dimension line when it is broken at the text (DimBreakDimLine) and that the text frame (DimTxtRect) is drawn with (DXF: DIMGAP). Setting it raises PropertyChangedEvent.

public double DimensionLineGap { get; set; }

Property Value

double

ExtLineColor

The color of the extension lines (the lines from the measured points to the dimension line). Setting it raises PropertyChangedEvent.

public ColorDef ExtLineColor { get; set; }

Property Value

ColorDef

ExtLineExtension

The length by which an extension line runs past the dimension line, in model units (DXF: DIMEXE). With DimNoExtLine set, only a short piece of this length on both sides of the dimension line is drawn (none when 0). Setting it raises PropertyChangedEvent.

public double ExtLineExtension { get; set; }

Property Value

double

ExtLineOffset

The gap between the measured point and the start of its extension line, in model units (DXF: DIMEXO). Setting it raises PropertyChangedEvent.

public double ExtLineOffset { get; set; }

Property Value

double

ExtLineWidth

The line width of the extension lines. null means the default line width. Setting it raises PropertyChangedEvent.

public LineWidth ExtLineWidth { get; set; }

Property Value

LineWidth

FillColor

The color of the solid symbols (filled arrow, filled circle), of the circle and of the slash symbol. The color of the filled symbols is captured in HatchStyleSolid when that is first used. The default is DimLineColor. Setting it raises PropertyChangedEvent.

public ColorDef FillColor { get; set; }

Property Value

ColorDef

FixedLayer

A layer onto which all parts of the dimension would be placed, null for no fixed layer. Currently not used by the layout. Setting it raises PropertyChangedEvent.

public Layer FixedLayer { get; set; }

Property Value

Layer

Flags

Implementation of Flags: the derived class states what the entry is and what the user can do with it. The flags must match the overridden members, e.g. HasSubEntries requires SubItems, ValueEditable requires Value and EndEdit(bool, bool, string), DropDown requires GetDropDownList() and ListBoxSelected(int).

public override PropertyEntryType Flags { get; }

Property Value

PropertyEntryType

FontColor

The color of the dimension texts. null (the default) means no explicit color: the text takes the color from its parent. Setting it raises PropertyChangedEvent.

public ColorDef FontColor { get; set; }

Property Value

ColorDef

FontFlags

The style of the text font as a combination of DimensionStyle.EFontFlag values, also available as DimFontBold, DimFontItalic, DimFontUnderline and DimFontStrikeOut. The font style is not applied by the current Dimension layout. Setting it raises PropertyChangedEvent.

public DimensionStyle.EFontFlag FontFlags { get; set; }

Property Value

DimensionStyle.EFontFlag

GeoFlags

The settings for the dimension line and the extension lines as a combination of DimensionStyle.EGeoFlag bits. The same bits are available as boolean properties (DimNoDimLine, DimBreakDimLine, ...). Setting it raises PropertyChangedEvent.

public DimensionStyle.EGeoFlag GeoFlags { get; set; }

Property Value

DimensionStyle.EGeoFlag

HatchStyleSolid

A solid hatch style with the FillColor of this style, used for the filled arrow heads and circles. It is created on first access, named after the style with the suffix " [DimensionStyleFillSolid]", and is not persisted. It keeps the fill color it was created with; a later change of FillColor does not update it.

public HatchStyleSolid HatchStyleSolid { get; }

Property Value

HatchStyleSolid

LabelText

An explicit label text. When set (not null) it is shown instead of the text from the StringTable; use it for entries whose label is not a fixed resource string, e.g. the name of an item. Call Refresh() after changing it while the entry is displayed.

public override string LabelText { get; }

Property Value

string

LineIncrement

The distance between successive dimension lines, in model units, when a dimension with several points is drawn with one dimension line per point (DimMultiLine; DXF: DIMDLI). Multi line dimensioning needs a value greater than 0. Setting it raises PropertyChangedEvent.

public double LineIncrement { get; set; }

Property Value

double

MinusTolerance

The lower tolerance shown after the value when DimTxtTolerances is set, in the unit of the dimension text. It is written with its sign, so a lower tolerance is given as a negative number, e.g. -0.05. Setting it raises PropertyChangedEvent.

public double MinusTolerance { get; set; }

Property Value

double

Name

The name of the style, which identifies it in its DimensionStyleList and in the property grid. When the style is contained in a list, the name must be unique in that list: setting a name that another style of the list already has throws a NameAlreadyExistsException, otherwise the list is re-keyed. Changing the name does not raise PropertyChangedEvent.

public string Name { get; set; }

Property Value

string

PlusTolerance

The upper tolerance shown after the value when DimTxtTolerances is set, in the unit of the dimension text. It is written with its sign, a positive value gets a leading "+". Setting it raises PropertyChangedEvent.

public double PlusTolerance { get; set; }

Property Value

double

PointFlags

The settings for point dimensioning as a combination of DimensionStyle.EPointFlag bits. The same bits are available as the boolean properties DimMultiLine and DimNoExtLine. Setting it raises PropertyChangedEvent.

public DimensionStyle.EPointFlag PointFlags { get; set; }

Property Value

DimensionStyle.EPointFlag

RadiusFlags

The settings for radius and diameter dimensioning as a combination of DimensionStyle.ERadiusFlag bits, also available as DimRadiusBend. Setting it raises PropertyChangedEvent.

public DimensionStyle.ERadiusFlag RadiusFlags { get; set; }

Property Value

DimensionStyle.ERadiusFlag

Round

The precision of the dimension text (DXF: DIMRND). 0 means full precision. A value between 0 and 1 (1.0, 0.5, 0.25, 0.1, 0.05, 0.025, 0.01, 0.001, ...) rounds the value to a multiple of it and shows as many decimals as the value needs (all of them with DimForceTrailingZero). A value greater than 1 (2, 4, 8, 16, 32, 64) writes the value as a fraction with this largest denominator (see DimTxtFractional). -1 selects the "DIN Bau" entry of the property page (see DimTxtDinBau). The default is 0.001. Setting it raises PropertyChangedEvent.

public double Round { get; set; }

Property Value

double

RoundAlt

The precision of the alternate (second) text, with the same meaning as Round (DXF: DIMALTD). Stored and taken from DXF, but the current layout does not draw the alternate text. Setting it raises PropertyChangedEvent.

public double RoundAlt { get; set; }

Property Value

double

Scale

The factor by which a measured length, radius or diameter is multiplied before it is formatted as text (DXF: DIMLFAC), e.g. to dimension in a unit other than the model unit. The default is 1. Setting it raises PropertyChangedEvent.

public double Scale { get; set; }

Property Value

double

ScaleAlt

The factor applied to the measured value for the alternate (second) text (DXF: DIMALTF), e.g. 25.4 to show inches in brackets behind millimetres. Stored and taken from DXF, but the current layout does not draw the alternate text. Setting it raises PropertyChangedEvent.

public double ScaleAlt { get; set; }

Property Value

double

SubItems

Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems

public override IPropertyEntry[] SubItems { get; }

Property Value

IPropertyEntry[]

Symbol

The symbol (arrow head, circle, slash) drawn at the ends of the dimension line; see DimensionStyle.ESymbol. The default is DimFilledArrow. Setting it raises PropertyChangedEvent.

public DimensionStyle.ESymbol Symbol { get; set; }

Property Value

DimensionStyle.ESymbol

SymbolFlags

The settings for the symbols as a combination of DimensionStyle.ESymbolFlag bits. Stored only, not evaluated by the current layout. Setting it raises PropertyChangedEvent.

public DimensionStyle.ESymbolFlag SymbolFlags { get; set; }

Property Value

DimensionStyle.ESymbolFlag

SymbolPlacement

Whether the symbols are drawn inside or outside the extension lines, or chosen automatically depending on the available space; see DimensionStyle.ESymbolPlacement. The default is DimAutomatic. Setting it raises PropertyChangedEvent.

public DimensionStyle.ESymbolPlacement SymbolPlacement { get; set; }

Property Value

DimensionStyle.ESymbolPlacement

SymbolSize

The size of the symbols in model units: the width of an arrow head, the diameter of a circle, the extent of a slash along the dimension line (DXF: DIMASZ). Like the text size it is multiplied by the layout factor of the view. Setting it raises PropertyChangedEvent.

public double SymbolSize { get; set; }

Property Value

double

TextDist

The distance of the text from the dimension line as a multiple of TextSize: 0 centers the text on the dimension line, 1 places it one text height above it (for angle dimensions: outward from the arc). Setting it raises PropertyChangedEvent.

public double TextDist { get; set; }

Property Value

double

TextFlags

The settings for the dimension text as a combination of DimensionStyle.ETextFlag bits. The same bits are available as boolean properties (DimTxtOutside, DimTxtRotate90, DimTxtTolerances, ...). Setting it raises PropertyChangedEvent.

public DimensionStyle.ETextFlag TextFlags { get; set; }

Property Value

DimensionStyle.ETextFlag

TextFont

The name of the font family used for the dimension texts, e.g. "Arial" (the default); corresponds to the DXF text style of a dimension style. The property page offers the font families installed on the system. Setting it raises PropertyChangedEvent.

public string TextFont { get; set; }

Property Value

string

TextPostfix

Text appended after the measured value, e.g. a unit. A Dimension uses it unless it has a postfix of its own (see GetPostfix(int)). Setting it raises PropertyChangedEvent.

public string TextPostfix { get; set; }

Property Value

string

TextPostfixAlt

Text appended after the alternate (second) value (see DimTxtAlt). A Dimension returns it from GetPostfixAlt(int) when it has no alternate postfix of its own, but the current layout does not draw the alternate text. Setting it raises PropertyChangedEvent.

public string TextPostfixAlt { get; set; }

Property Value

string

TextPrefix

Text written in front of the measured value, e.g. "R" or "Ø". A Dimension uses it unless it has a prefix of its own (see GetPrefix(int)). Setting it raises PropertyChangedEvent.

public string TextPrefix { get; set; }

Property Value

string

TextSize

The height of the dimension text in model units (DXF: DIMTXT), multiplied by the layout factor of the view. It is also the unit of TextDist. The default is 5. Setting it raises PropertyChangedEvent.

public double TextSize { get; set; }

Property Value

double

TextSizeTol

The height of the tolerance texts (DimTxtTolerances) in model units, usually smaller than TextSize. The default is 3. Setting it raises PropertyChangedEvent.

public double TextSizeTol { get; set; }

Property Value

double

Types

The dimension types this style may be used for, as a combination of DimensionStyle.ETypeFlag bits (bit 1 << (int)dimType for a Dimension.EDimType). The same bits are available as DimPoints, DimCoord, DimAngle, DimRadius, DimDiameter and DimLocation. The DimensionStyleSelectionProperty only offers styles whose types include the type of the dimension being edited. The default is DimAllTypes. Setting it raises PropertyChangedEvent.

public DimensionStyle.ETypeFlag Types { get; set; }

Property Value

DimensionStyle.ETypeFlag

UserData

Free user data attached to this style, e.g. by file import or by an application. It is created on first access and saved with the style, but not copied by Clone().

public UserData UserData { get; }

Property Value

UserData

Methods

Added(IPropertyPage)

Implementation of Added(IPropertyPage): memorizes the page in propertyPage and reports Added. Override it to subscribe to events while the entry is displayed, and call the base implementation.

public override void Added(IPropertyPage propertyTreeView)

Parameters

propertyTreeView IPropertyPage

Clone()

Returns a copy of this dimension style with the same name and settings. The copy is not contained in any list, so it can be renamed and added to a DimensionStyleList. The copy shares the color, line width and layer objects with the original. AngleText, UserData and HatchStyleSolid are not copied: the copy starts with DegreeDecimal, empty user data and a hatch style of its own.

public DimensionStyle Clone()

Returns

DimensionStyle

The copy

EditTextChanged(string)

May be overridden when Flags contains PropertyEntryType.ValueEditable. See EditTextChanged(string),

public override bool EditTextChanged(string newValue)

Parameters

newValue string

Returns

bool

EndEdit(bool, bool, string)

Must be overridden when Flags contains PropertyEntryType.ValueEditable. See EndEdit(bool, bool, string)

public override void EndEdit(bool aborted, bool modified, string newValue)

Parameters

aborted bool
modified bool
newValue string

GetObjectData(SerializationInfo, StreamingContext)

Writes the data of this object for the legacy binary serialization (ISerializable). Files are written in the JSON format (IJsonSerialize) now; the binary format is still read.

public void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

receives the data

context StreamingContext

the destination of the serialization

Removed(IPropertyPage)

public override void Removed(IPropertyPage propertyTreeView)

Parameters

propertyTreeView IPropertyPage

the IPropertyTreeView from which it was removed

SameData(DimensionStyle)

Checks whether this dimensionstyle has the same properties as the other dimension style. Name equality is not checked.

public bool SameData(DimensionStyle other)

Parameters

other DimensionStyle

The other dimension style

Returns

bool

true if equal

Events

PropertyChangedEvent

Raised by the setter of every property of the style except Name, after the value has been changed. The change is also reported to the DimensionStyleList containing the style and from there to the project or the global settings. Dimensions already drawn with this style are not recalculated automatically; call Recalc() on them or use the "update all dimensions" command of the list.

public event DimensionStyle.PropertyChangedDelegate PropertyChangedEvent

Event Type

DimensionStyle.PropertyChangedDelegate