Class vdLineType
- Namespace
- VectorDraw.Professional.vdPrimaries
- Assembly
- VectorDraw.Professional.dll
Represents a reusable line type definition used by drawing entities (LineType) of vdFugure object type. Encapsulates linetype metadata (name, comment), geometry (segments) and drawing behavior (draw method, DPI scaling) and provides support for serialization and document registration.
public sealed class vdLineType : vdPrimary, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
vdLineType
- Implements
- Inherited Members
Examples
vdLineTypes for example of creating and using vdLineType instances in a document.
Remarks
Instances of vdLineType are primary table objects that are typically registered in a
document's vdLineTypes collection (LineTypes). The class exposes properties to control how the
linetype is rendered and serialized. The default linetype is "SOLID".
Important behaviors:
- Renaming is validated against table rules and owner collection constraints.
- Deletion is prevented when the linetype is a default or has dependencies in the document.
- The
Segmentscollection holdsLineTypeSegmententries that define the pattern. - Use
Update()after modifying geometry-related properties to refresh internal state.
Constructors
- vdLineType()
Initializes the vdLinetype object.
- vdLineType(vdDocument)
Initializes the vdLinetype object and registers it to the passed Document.
- vdLineType(vdDocument, string)
Initializes the vdLinetype object and registers it to the passed Document.
Properties
- Comment
Get/Set the comments for the linetype.
- Deleted
Get/Set a property that marks the object as Deleted or not.
- DrawMethod
Get/Set a value that controls the way that the linetype is drawn on the line segments.
- IsDPIScale
Get/Set a boolean value representing if the linetype will be always the same not depended from the zoom.
- Name
Get/Set the name of the vdLinetype object.
- Segments
Get/Set the segments for the linetype.
- VisibleOnForms
Get/Set a boolean value representing if the vdLineType will be viewed in Vectordraw forms.
Methods
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdLinetype object when opening in vdml format.
- GetTableDependecies(vdTableDependeciesArgs)
Fills the passed vdTableDependeciesArgs args with all the table references of this object (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc).
- GetgrLineType()
Get the geometrical information of the linetype.
- InitializeProperties()
Resets the properties of the vdLinetype object to the Default values.
- IsByBlock()
Get a boolean value representing if the linetype is the default BYBLOCK linetype.
- IsByLayer()
Get a boolean value representing if the linetype is the default BYLAYER linetype.
- MatchProperties(vdPrimary, vdDocument)
Matches all the common properties from an object and sets them to this object.
- OnOwnerChanged()
Overrides OnOwnerChanged()
- Serialize(Serializer)
This Function is called when saving the vdLineType object to vdml format.
- SetDefault()
Sets the vdLinetype object as SOLID.
- ToString()
Gets a System.String that represents the name of the vdLinetype Object.
- Update()
Updates the objects of the object after change of properties.