In This Article

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 placement is set to Column, or the coordinate location on the x-axis when placement is set to Absolute.

lineKind LineKind

The kind of line to use.

thickness float

The thickness of the line.

color Color?

The color of the line or null to use a default color.

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.

Inherited Members