Class DrawingGuideCollection
Represents the drawing guides associated with a presentation view.
Implements
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public sealed class DrawingGuideCollection : Collection<DrawingGuide>, IList<DrawingGuide>, ICollection<DrawingGuide>, IList, ICollection, IReadOnlyList<DrawingGuide>, IReadOnlyCollection<DrawingGuide>, IEnumerable<DrawingGuide>, IEnumerable
Constructors
DrawingGuideCollection()
Initializes an empty drawing-guide collection.
Declaration
public DrawingGuideCollection()
Methods
Add(DirectionValues, int)
Adds a drawing guide.
Declaration
public DrawingGuide Add(DirectionValues orientation, int position)
Parameters
| Type | Name | Description |
|---|---|---|
| DirectionValues | orientation | The guide orientation. |
| int | position | The guide position in points. |
Returns
| Type | Description |
|---|---|
| DrawingGuide | The newly added guide. |
ClearItems()
Handles clear items for this drawing guide collection.
Declaration
protected override void ClearItems()
Overrides
InsertItem(int, DrawingGuide)
Handles insert item for this drawing guide collection.
Declaration
protected override void InsertItem(int index, DrawingGuide item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |
| DrawingGuide | item | The item to add, remove, or inspect. |
Overrides
RemoveItem(int)
Removes the item from this drawing guide collection.
Declaration
protected override void RemoveItem(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |
Overrides
SetItem(int, DrawingGuide)
Sets the item for this drawing guide collection.
Declaration
protected override void SetItem(int index, DrawingGuide item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |
| DrawingGuide | item | The item to add, remove, or inspect. |