Interface IColorDef
Interface to handle the colors of IGeoObject objects
Namespace: CADability.Attribute
Assembly: CADability.dll
Syntax
public interface IColorDef
Properties
| Improve this Doc View SourceColorDef
Sets and gets the color of the object
Declaration
ColorDef ColorDef { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorDef |
Methods
| Improve this Doc View SourceSetTopLevel(ColorDef)
Sets the color of only the top level object (in case of the object contains children) No changing events are issued. Not intended for public use.
Declaration
void SetTopLevel(ColorDef newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorDef | newValue |
SetTopLevel(ColorDef, Boolean)
Same as SetTopLevel(ColorDef), but also overwrites the color of child objects if it is null. Child objects that already have colors remain unchanged.
Declaration
void SetTopLevel(ColorDef newValue, bool overwriteChildNullColor)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorDef | newValue | |
| System.Boolean | overwriteChildNullColor |