Table of Contents

Class vdHatchPatterns

Namespace
VectorDraw.Professional.vdCollections
Assembly
VectorDraw.Professional.dll

Represents a collection of hatch patterns (vdHatchPattern) used by a HatchPatterns.

public sealed class vdHatchPatterns : vdBaseObject, IDisposable, IVDSerialise, IEnumerable, IBaseObject
Inheritance
vdHatchPatterns
Implements
Inherited Members

Examples

see HatchPattern for an example of how to use the vdHatchPatterns collection.

Remarks

The vdHatchPatterns collection encapsulates creation, lookup and lifecycle management for hatch pattern definitions. It provides facilities to:

  • Add, remove and enumerate hatch patterns.
  • Ensure and provide standard/default patterns (for example "SOLID", "U1", "U2", "U10", "U20").
  • Load patterns from .pat files and streams via Load(string, bool) and Load(Stream, bool).

The collection maintains internal dictionaries for fast name and id lookup. Standard patterns are lazily created and added to the collection when first required via the VectorDraw.Professional.vdCollections.vdHatchPatterns.EnsureDefault(VectorDraw.Professional.vdPrimaries.vdHatchPattern@,System.String) helper.

Constructors

vdHatchPatterns()

Initializes the vdHatchPatterns collections and adds the standard hatch patterns.

Properties

BDiagonal

Gets and ensures existance of the default diagonal line hatch pattern.

Count

Get the item's count of the collection.

Cross

Gets and ensures existance of the default cross hatch pattern.

DiagCross

Gets and ensures existance of the default diagonal cross line hatch pattern.

Double

Gets and ensures existance of the default double line hatch pattern.

FDiagonal

Gets and ensures existance of the default diagonal line hatch pattern.

Horizontal

Gets and ensures existance of the default horizontal line hatch pattern.

Invisible

Gets and ensures existance of the default Invisible hatch pattern.

this[int]

Get a vdHatchPattern object from the collection at a specified index.

ItemType

Returns the Type of Items in the collection

Last

Returns the last item in the collection.

Single

Gets and ensures existance of the default single line hatch pattern.

Solid

Gets and ensures existance of the default solid hatch pattern.

Vertical

Gets and ensures existance of the default vertical line hatch pattern.

Methods

Add(object)

Adds an object to the end of the collection.

Add(string)

Creates and adds a vdHatchPattern object to the collection with the specified name.

AddDefaults()

Adds standard hatch patterns to the collection and also adds default hatch patterns.

AddItem(object)

Adds an item to the collection.

AddItem(vdHatchPattern)

Adds a vdHatchPattern object to the collection.

AddResolveProperty(object, string, string)

Adds the parameters to the resolve list of the collection.

AddStandards()

Adds Standard hatch patterns to the collection.

ChangeOrder(vdHatchPattern, bool)

Changes the position of a vdHatchPattern object to the front or the end of the collection.

ClearIndexDictionary()

Clears the Index of the Dictionary. Internally used to speed up Swap method.

DeSerialize(DeSerializer, string, object)

This Function is called foreach field name of the vdHatchPatterns object when opening in vdml format.

Dispose()

Releases all resources used by this object.

FindItem(object)

Searches the collection for a specified object.

FindItem(vdHatchPattern)

Checks if an object exists in the collection.

FindName(string)

Finds a vdHatchPattern object with the specified name in the collection.

GetEnumerator()

Implements the "foreach" expression for the collection.

GetNotDeletedItems()

Get all non deleted objects of the collection.

GetNotDeletedItemsAndVisibleOnForms()

Get all non deleted objects of the collection.

GetObjectRealPosition(object)

Find the index where a specified object is located in the list.

InsertAt(int, object)

Insert an object at a specified index.

InsertAt(int, vdHatchPattern)

Insert a vdHatchPattern object to a specified index of the collection.

InternalSetOwner(vdBaseObject)

Internally used only.

Set the object owner

IsDefault(vdPrimary)

Checks if the parameter passed is the one of the standard hatch patterns.

Load(Stream, bool)

Add a collection of hatchPatterns that defined in the .pat file.

Load(string, bool)

Add a collection of hatchPatterns that defined in the .pat file.

MakeIndexDictionary()

Creates an Index of the Dictionary. Internally used to speed up Swap method.

Purge()

Sets as Deleted all vdHatchPatterns that are not being used in the Collection's Document.

RemoveAll()

Removes all objects from the collection.

RemoveAt(int)

Removes an object from the specified index of the collection.

RemoveItem(object)

Removes the specified item from the collection.

RemoveItem(vdHatchPattern)

Removes a specific vdHatchPattern object from the collection.

ResolveProperties()

Resolves all the properties added with the AddResolveProperty(object, string, string) function.

Serialize(Serializer)

This Function is called when saving the vdHatchPattern object to vdml format.

ToString()

Gets a System.String that represents the count of the vdHatchPatterns collection Object.

getUniqueTableName(string)

Creates a unique string for use as name to a vdHatchPattern object.

swap(vdHatchPattern, vdHatchPattern)

Swaps the position between two different vdHatchPattern objects existing in the collection.

See Also