Class LineBasedUILayer<TTag>
Class LineBasedUILayer represents line based layer abstraction. Implements the TagBasedUILayer<TTag>
Inherited Members
Namespace: Telerik.WinForms.Controls.SyntaxEditor.UI.Layers
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public abstract class LineBasedUILayer<TTag> : TagBasedUILayer<TTag> where TTag : ITag
Type Parameters
TTag
The type of the t tag. |
Constructors
LineBasedUILayer()
Initializes a new instance of the LineBasedUILayer<TTag> class.
Declaration
protected LineBasedUILayer()
Fields
ElementToSnapshotSpanCache
The UI element to snapshot span cache.
Declaration
protected readonly Dictionary<FrameworkElement, TextSnapshotSpan> ElementToSnapshotSpanCache
Field Value
System.Collections.Generic.Dictionary<FrameworkElement, TextSnapshotSpan>
|
Methods
ArrangeLinePartUIElement(FrameworkElement, Span, UIUpdateContext)
Arranges the line part UI element.
Declaration
protected virtual void ArrangeLinePartUIElement(FrameworkElement uiElement, Span span, UIUpdateContext updateContext)
Parameters
FrameworkElement
uiElement
The UI element. |
Span
span
The span. |
UIUpdateContext
updateContext
The update context. |
Clear()
GetLinePartUIElement(TTag, Span, UIUpdateContext)
Gets the line part UI element.
Declaration
protected abstract FrameworkElement GetLinePartUIElement(TTag tag, Span span, UIUpdateContext updateContext)
Parameters
TTag
tag
The tag. |
Span
span
The span. |
UIUpdateContext
updateContext
The update context. |
Returns
FrameworkElement
System.Windows.FrameworkElement. |
GetLineUIElements(Span, IEnumerable<TagSpan<TTag>>, UIUpdateContext)
Gets the line UI elements.
Declaration
protected virtual IEnumerable<FrameworkElement> GetLineUIElements(Span currentLineSpan, IEnumerable<TagSpan<TTag>> tags, UIUpdateContext updateContext)
Parameters
Span
currentLineSpan
The current line span. |
System.Collections.Generic.IEnumerable<TagSpan<TTag>>
tags
The tags. |
UIUpdateContext
updateContext
The update context. |
Returns
System.Collections.Generic.IEnumerable<FrameworkElement>
IEnumerable<FrameworkElement>. |
NormalizeByTextFormatDefinitionPriority(Span, IEnumerable<TagSpan<TTag>>, UIUpdateContext)
Normalizes the by text format definition priority.
Declaration
protected static IEnumerable<TagSpan<TTag>> NormalizeByTextFormatDefinitionPriority(Span currentLineSpan, IEnumerable<TagSpan<TTag>> tags, UIUpdateContext updateContext)
Parameters
Span
currentLineSpan
The current line span. |
System.Collections.Generic.IEnumerable<TagSpan<TTag>>
tags
The tags. |
UIUpdateContext
updateContext
The update context. |
Returns
System.Collections.Generic.IEnumerable<TagSpan<TTag>>
IEnumerable<TagSpan<TTag>>. |
OnTextFormatDefinitionsRegistryChanged()
Called when [text format definitions registry changed].
Declaration
protected override void OnTextFormatDefinitionsRegistryChanged()
Overrides
UpdateUIOverride(UIUpdateContext, TextSnapshotSpan)
Updates the UI override.
Declaration
protected override void UpdateUIOverride(UIUpdateContext updateContext, TextSnapshotSpan changedSnapshotSpan)
Parameters
UIUpdateContext
updateContext
The update context. |
TextSnapshotSpan
changedSnapshotSpan
The changed snapshot span. |