Table of Contents

Property ActiveHatchProperties

Namespace
VectorDraw.Professional.vdObjects
Assembly
VectorDraw.Professional.dll

ActiveHatchProperties

Get/Set the active vdHatchProperties properties of the document. vdPolyhatch, vdRect, vdPolyline, vdEllipse, vdCircle and vdArc and all vdFigure objects that implement the IvdHatchFigure assign these properties as default when the setDocumentDefaults() method is called."/>

public vdHatchProperties ActiveHatchProperties { get; set; }

Property Value

vdHatchProperties

Examples

Changes the ActiveHatchProperties to be filled with blue VdFillModeHatchDiagCross lines

vdHatchProperties hprops = new vdHatchProperties();
hprops.FillMode = VectorDraw.Professional.Constants.VdConstFill.VdFillModeHatchDiagCross;
hprops.FillColor = new vdColor(Color.Blue);
doc.ActiveHatchProperties = hprops;
//Create a new vdRect entity
vdRect rc = new vdRect();
//select the document that the text is reference to.
rc.SetUnRegisterDocument(doc);
//select the default active properties of the document object for the entity
rc.setDocumentDefaults();
Console.WriteLine(rc.HatchProperties.ToString());// output will be "VdFillModeHatchDiagCross"

Remarks

Raizes the OnBeforeModifyObject event and the OnAfterModifyObject event.