Property ActiveLineWeight
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
ActiveLineWeight
Get/Set the active VdConstLineWeight of the document. all vdFigure objects assign this line weight as default when the setDocumentDefaults() method is called.
public VdConstLineWeight ActiveLineWeight { get; set; }
Property Value
Examples
Changes the ActiveLineWeight and create a new vdLine that get this property.
//change the ActiveLineWeight of document to be 2 mm wide.
doc.ActiveLineWeight = VectorDraw.Professional.Constants.VdConstLineWeight.LW_200;
//create a new vdLine entity
vdLine line = new vdLine();
//select the document that the text is reference to.
line.SetUnRegisterDocument(doc);
//select the default active properties of the document object for the entity
line.setDocumentDefaults();
Console.WriteLine(line.LineWeight);//the output will be : LW_200
Remarks
This property is used when setDocumentDefaults() is called.
Default value: LW_BYLAYER.
Raizes the OnBeforeModifyObject even and the OnAfterModifyObject event.