Class vdHatchPattern
- Namespace
- VectorDraw.Professional.vdPrimaries
- Assembly
- VectorDraw.Professional.dll
Represents a hatch pattern definition used by a document's hatch pattern table. This class encapsulates the pattern name and its pattern lines and provides behavior for serialization, cloning, transformation and DPI-based adjustments.
public sealed class vdHatchPattern : vdPrimary, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
vdHatchPattern
- Implements
- Inherited Members
Examples
see HatchPattern for an example of how to use the vdHatchPattern class in practice.
Remarks
Instances of vdHatchPattern are table objects (derive from vdPrimary)
and are commonly stored in a vdHatchPatterns reference to HatchPatterns.
The implementation delegates the underlying pattern data and rendering behavior to an internal
grPattern instance (stored in mgrPattern).
Typical usage:
1. Create a new vdHatchPattern, optionally with a document and name.
2. Set or modify the PatternLines property or the Name.
3. Register the object in the document's hatch pattern table to use it for hatching operations.
4. modify the hatched objects with the hatch pattern usually with HatchPattern of a HatchProperties.
Constructors
- vdHatchPattern()
Initializes the vdHatchPattern object.
- vdHatchPattern(vdDocument)
Initializes the vdHatchPattern object and registers it to the passed Document.
- vdHatchPattern(vdDocument, string)
Initializes the vdHatchPattern object and registers it to the passed Document.
Properties
- Deleted
Get/Set a property that marks the object as Deleted or not.
- Name
Get/Set the name of the vdHatchPattern object.
- PatternLines
Get/Set the Pattern Lines of the object.
- VisibleOnForms
Get/Set a boolean value representing if the vdHatchPattern will be viewed in Vectordraw forms.
Methods
- CopyFrom(vdHatchPattern)
Copies all properties from another vdHatchPattern object.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdHatchPattern object when opening in vdml format.
- Dispose()
Releases all resources used by this object.
- GetTableDependecies(vdTableDependeciesArgs)
Fills the passed vdTableDependeciesArgs args with all the table references of this object (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc).
- InitializeProperties()
Resets the properties of the vdHatchPattern object to the Default values.
- IsByDpiy()
Checks if this object represents a specific hatch pattern(standard patterns:u10,u20,U10_45,U10_135,U10_90,U10_45_135). These objects are using a constant offset between pattern lines (0.0833 inches )whatever the active zoom is.
- IsSolid()
Check if the vdHatchPattern object is solid.
- MatchProperties(vdPrimary, vdDocument)
Matches all the common properties from an object and sets them to this object.
- ModifyByDpi(double, double)
if the object is IsByDpiy() modifies its pattern lines depend on the passed DPI and pixelsize.
- OnOwnerChanged()
Overrides the OnOwnerChanged()
- Serialize(Serializer)
This Function is called when saving the vdHatchPattern object to vdml format.
- ToString()
Gets a System.String that represents the name of the vdHatchPattern Object.
- Transform(double, double)
Transforms all the geometrical properties of the object with the specific rotation and scale.
- Transform(Matrix)
Transforms all the geometrical properties of the object with the specific Matrix mat.