In This Article

IColumnGuideCollection Interface

Provides the base requirements for a collection of IColumnGuide instances to be displayed within an ITextView.

public interface IColumnGuideCollection

Methods

Add(ColumnGuidePlacement, int, LineKind, int, Color?)

Creates and adds a new instance of IColumnGuide.

IColumnGuide Add(ColumnGuidePlacement placement, int placementValue, LineKind lineKind, int thickness, Color? color)
Parameter Type Description
placement ColumnGuidePlacement

Indicates how the column guide will be placed within its parent ITextView.

placementValue int

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 int

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.

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.

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.