Property ActivePenWidth
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
ActivePenWidth
Get/Set the active penwidth of the document in Drawing Units. all vdFigure objects assign this pen weight as default when the setDocumentDefaults() method is called.
public double ActivePenWidth { get; set; }
Property Value
Examples
Changes the ActivePenWidth and create a new vdLine that get this property.
//change the ActivePenWidth of document to be 2 Drawing Units wide.
doc.ActivePenWidth = 2.0d;
//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.PenWidth);//the output will be : 2.0
Remarks
This property is used when setDocumentDefaults() is called.
Default value:0.0.
Raizes the OnBeforeModifyObject event and the OnAfterModifyObject event.