ColumnGuideCollection Class
Represents an observable collection of IColumnGuide instances to be displayed within an ITextView.
public class ColumnGuideCollection : ObservableCollection<IColumnGuide>, IColumnGuideCollection
- Inheritance:
- object Collection<IColumnGuide> ObservableCollection<IColumnGuide> object
- Implements:
- IColumnGuideCollection
Constructors
ColumnGuideCollection()
Initializes an instance of the class.
public ColumnGuideCollection()
Methods
Add(ColumnGuidePlacement, double, LineKind, float, Color?)
Creates and adds a new instance of IColumnGuide.
public IColumnGuide Add(ColumnGuidePlacement placement, double placementValue, LineKind lineKind, float thickness, Color? color)
Parameter | Type | Description |
---|---|---|
placement | ColumnGuidePlacement | Indicates how the column guide will be placed within its parent ITextView. |
placementValue | double | The column number when |
lineKind | LineKind | The kind of line to use. |
thickness | float | The thickness of the line. |
color | Color? | The color of the line or |
Returns
- IColumnGuide:
The IColumnGuide that was created.
Add(int)
Creates and adds a new instance of IColumnGuide for a solid line guide to be placed at a specific column index.
public IColumnGuide Add(int column)
Parameter | Type | Description |
---|---|---|
column | int | The column where the guide will be placed. |
Returns
- IColumnGuide:
The IColumnGuide that was created.
Add(int, LineKind)
Creates and adds a new instance of IColumnGuide for a guide to be placed at a specific column index.
public IColumnGuide Add(int column, LineKind lineKind)
Parameter | Type | Description |
---|---|---|
column | int | The column where the guide will be placed. |
lineKind | LineKind | The kind of line to use. |
Returns
- IColumnGuide:
The IColumnGuide that was created.