ClassIndicatorsMargin<T>
A margin 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
Type Parameters:
T
Syntax:
public class IndicatorsMargin<T> : IndicatorsMarginBase where T : FrameworkElement, new()
Inheritance: objectSyntaxEditorMarginIndicatorsMarginBaseIndicatorsMargin<T>
Inherited Members
Constructors
IndicatorsMargin(RadSyntaxEditor)
Initializes a new instance of the IndicatorsMargin<T> class.
Declaration
public IndicatorsMargin(RadSyntaxEditor syntaxEditor)
Parameters
syntaxEditor
The RadSyntaxEditor instance.
Methods
MarginPropertiesChanged()
Determines whether any of the properties of the margin which require a redraw has changed.
MeasureOverride(Size)
Called when the margin is measured.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
constraint
Size
Returns
Size
UpdateIndicator(T, int)
Called when an indicator needs to be updated.
Declaration
protected virtual void UpdateIndicator(T indicator, int lineNumber)
Parameters
indicator
T
The indicator.
lineNumber
The line number the indicator is placed on.
UpdateMarginPropertiesCache()
Updates the properties of the margin which need to be cached.
Declaration
protected virtual void UpdateMarginPropertiesCache()
UpdateUIOverride(UIUpdateContext)
Updates the user interface of the margin.
Declaration
protected override void UpdateUIOverride(UIUpdateContext updateContext)
Parameters
updateContext
The UIUpdateContext.
Overrides