Class AttributesProperty
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Property entry that groups the attribute properties of an IGeoObject (its colour via a ColorSelectionProperty, when the object implements IColorDef, and its layer via a LayerSelectionProperty) under one "Attributes" title. It is used by the construction actions to show the attributes of the object being constructed in the property grid.
public class AttributesProperty : IShowPropertyImpl, IShowProperty, IPropertyEntry
- Inheritance
-
AttributesProperty
- Implements
- Inherited Members
Constructors
AttributesProperty(IGeoObject, IFrame)
Creates the attribute entries for o: a color entry when the object implements
IColorDef, and a layer entry. Both are connected to the respective property of the object via
reflection.
public AttributesProperty(IGeoObject o, IFrame frame)
Parameters
oIGeoObjectThe object whose attributes are shown
frameIFrameThe frame whose project provides the color and layer lists
Properties
EntryType
Overrides EntryType, returns GroupTitle.
public override ShowPropertyEntryType EntryType { get; }
Property Value
SubEntries
The sub entries shown below this entry when it is opened in the property page. The default implementation has none and returns an empty array.
public override IShowProperty[] SubEntries { get; }
Property Value
SubEntriesCount
The number of SubEntries, 0 for an entry that cannot be opened. The default implementation returns 0.
public override int SubEntriesCount { get; }