Class CadSheetComponent
A part of a sheet set that is a sheet or a subset (or the set itself, which is a subset of everything): it has an Id, a place in the set, a description and a list of custom properties. The objects are read from, and written to, the XML tree of their CadSheetSetFile; they can be changed only inside Change(Action<CadSheetSet>).
public abstract class CadSheetComponent
- Inheritance
-
CadSheetComponent
- Derived
- Inherited Members
Properties
- CustomProperties
Gets the custom properties in the order of the file (AutoCAD's: by name, letter case ignored). On the sheet set the list holds the definitions of both owners, the sheet-owned ones carrying the default value; on a sheet it holds that sheet's values.
- Description
Gets or sets the description; empty for none, which the file leaves out.
- Id
Gets the
IDof the part in the file (agand an upper-case GUID), which stays as long as the part is in the set.
- Parent
Gets the subset the part is in; null for the sheet set itself.
Methods
- FindCustomProperty(string)
Finds a custom property by name, letter case ignored.
- RemoveCustomProperty(string)
Takes a custom property out, by name, letter case ignored.
- SetCustomProperty(string, string, CadSheetSetPropertyFlags)
Sets a custom property: the value and the owner bits of the property of that name (letter case ignored) where there is one, else a new property placed in the name order. The property is not copied to the sheets here.