New to Telerik UI for WPFStart a free 30-day trial

A margin which can be added to the RadSyntaxEditor and holds indicators for each line.

Definition

Constructors

Initializes a new instance of the IndicatorsMargin<T> class.

C#
public IndicatorsMargin(RadSyntaxEditor syntaxEditor)
Parameters:syntaxEditorRadSyntaxEditor

The RadSyntaxEditor instance.

Methods

Determines whether any of the properties of the margin which require a redraw has changed.

C#
protected virtual bool MarginPropertiesChanged()
Returns:

bool

Called when the margin is measured.

C#
protected override Size MeasureOverride(Size constraint)
Parameters:constraintSizeReturns:

Size

Called when an indicator needs to be updated.

C#
protected virtual void UpdateIndicator(T indicator, int lineNumber)
Parameters:indicatorT

The indicator.

lineNumberint

The line number the indicator is placed on.

Updates the properties of the margin which need to be cached.

C#
protected virtual void UpdateMarginPropertiesCache()

Updates the user interface of the margin.

C#
protected override void UpdateUIOverride(UIUpdateContext updateContext)
Parameters:updateContextUIUpdateContext

The UIUpdateContext.

Overrides: SyntaxEditorMargin.UpdateUIOverride(UIUpdateContext)