Property ActiveLineType
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
ActiveLineType
Get/Set the active vdLineType of the document.
public vdLineType ActiveLineType { get; set; }
Property Value
Examples
Changes the ActiveLineType and create a new vdLine that reference to this linetype.
//create a new vdLineType with name "MyNewLineType" and make it as active.
vdLineType linetype = doc.LineTypes.Add("MyNewLineType");
doc.ActiveLineType = linetype;
//create a new line entitity
vdLine line = new vdLine();
//select the document that the line is reference to.
line.SetUnRegisterDocument(doc);
//select the default active properties of the document object for the entity
line.setDocumentDefaults();
Console.WriteLine(line.LineType.Name);//the output will be "MyNewLineType"
Remarks
This property is used when setDocumentDefaults() is called.
Default value:null.
Raizes the OnBeforeModifyObject event and the OnAfterModifyObject event.