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

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:

C#
public abstract class IndicatorsMarginBase : SyntaxEditorMargin

Inheritance: objectSyntaxEditorMarginIndicatorsMarginBase

Derived Classes: IndicatorsMargin<T>

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

Constructors

Initializes a new instance of the IndicatorsMarginBase class.

C#
protected IndicatorsMarginBase(RadSyntaxEditor syntaxEditor)
Parameters:syntaxEditorRadSyntaxEditor

The RadSyntaxEditor instance.

Fields

IndicatorBrushProperty

DependencyProperty

Registers the IndicatorBrush property.

C#
public static readonly DependencyProperty IndicatorBrushProperty

IndicatorsProperty

DependencyProperty

Registers the Indicators property.

C#
public static readonly DependencyProperty IndicatorsProperty

Properties

Canvas

Canvas

The canvas on which the indicators are drawn.

C#
protected Canvas Canvas { get; }

The brush used to color the indicators.

C#
public Brush IndicatorBrush { get; set; }

A collection of indicators currently added to the margin.

C#
public ObservableCollection<int> Indicators { get; }

Methods

Handles mouse left button.

C#
protected virtual bool HandleMouseLeftButtonDown(Point mousePosition)
Parameters:mousePositionPointReturns:

bool