Method GetSortedHandleTable
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
GetSortedHandleTable()
Returns a copy of handle table in ascending order
public SortedList GetSortedHandleTable()
Returns
- SortedList
A copy of handle table
Examples
Find all entities in the document that are filled with a specific hatch pattern and change it to another hatch pattern.
Note that will iterate through all entities inside all Layeouts and all blocks of the document since the handle table contains all objects of the document.
System.Collections.SortedList ents = doc.GetSortedHandleTable();
foreach (System.Collections.DictionaryEntry item in ents)
{
IvdHatchFigure ph = item.Value as IvdHatchFigure;
if (ph == null || ph.HatchProperties == null || ph.HatchProperties.FillMode != VdConstFill.VdFillModePattern || ph.HatchProperties.HatchPattern == null || ph.HatchProperties.HatchPattern.Name != "GRAVEL") continue;
ph.HatchProperties.HatchPattern = doc.HatchPatterns.FindName("EARTH");
((vdFigure) ph).Update();
}