Property ActivePenColor
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
ActivePenColor
Get/Set the vdColor pen color of the document. all vdFigure objects assign this color as default pen color when the setDocumentDefaults() method is called.
public vdColor ActivePenColor { get; set; }
Property Value
Examples
Changes the ActivePenColor and create a new vdLine that get this color.
//change the active color of document to red true color value.
doc.ActivePenColor = new vdColor(Color.Red);
//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.PenColor.ToString());//the output will be : (255,0,0)
Remarks
This property is used when setDocumentDefaults() is called.
Default value: ByLayer
Raizes the OnBeforeModifyObject event and the OnAfterModifyObject event.