Class
IndicatorsMarginBase

A base class for margins which can be added to the RadSyntaxEditor and holds indicators for each line.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.UI.Margins

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
public abstract class IndicatorsMarginBase : SyntaxEditorMargin

Inheritance: objectSyntaxEditorMarginIndicatorsMarginBase

Derived Classes: IndicatorsMargin<T>

Inherited Members SyntaxEditorMargin.UpdateUI()SyntaxEditorMargin.UpdateUI(UIUpdateContext)SyntaxEditorMargin.UpdateUIOverride(UIUpdateContext)SyntaxEditorMargin.Editor

Constructors

IndicatorsMarginBase(RadSyntaxEditor)

Initializes a new instance of the IndicatorsMarginBase class.

Declaration

cs-api-definition
protected IndicatorsMarginBase(RadSyntaxEditor syntaxEditor)

Parameters

syntaxEditor

RadSyntaxEditor

The RadSyntaxEditor instance.

Fields

IndicatorBrushProperty

Registers the IndicatorBrush property.

Declaration

cs-api-definition
public static readonly DependencyProperty IndicatorBrushProperty

Field Value

DependencyProperty

IndicatorsProperty

Registers the Indicators property.

Declaration

cs-api-definition
public static readonly DependencyProperty IndicatorsProperty

Field Value

DependencyProperty

Properties

Canvas

The canvas on which the indicators are drawn.

Declaration

cs-api-definition
protected Canvas Canvas { get; }

Property Value

Canvas

IndicatorBrush

The brush used to color the indicators.

Declaration

cs-api-definition
public Brush IndicatorBrush { get; set; }

Property Value

Brush

Indicators

A collection of indicators currently added to the margin.

Declaration

cs-api-definition
public ObservableCollection<int> Indicators { get; }

Property Value

ObservableCollection<int>

Methods

HandleMouseLeftButtonDown(Point)

Handles mouse left button.

Declaration

cs-api-definition
protected virtual bool HandleMouseLeftButtonDown(Point mousePosition)

Parameters

mousePosition

Point

Returns

bool