In This Article

EditorIndicatorMargin Class

Represents a default implementation of an indicator margin for an IEditorView.

public class EditorIndicatorMargin : EditorViewMarginBase, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IEditorViewMargin, ITextViewMargin, IOrderable, IKeyedObject
Inheritance:
object MarshalByRefObject DisposableObject LogicalTreeNodeBase UIElement EditorViewMarginBase object
Implements:
IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IEditorViewMargin ITextViewMargin IOrderable IKeyedObject

Constructors

EditorIndicatorMargin(IEditorView)

Initializes an instance of the EditorIndicatorMargin class.

public EditorIndicatorMargin(IEditorView view)
Parameter Type Description
view IEditorView

The IEditorView that will host the margin.

Methods

Draw(TextViewDrawContext)

Draws the margin and its content.

public override void Draw(TextViewDrawContext context)
Parameter Type Description
context TextViewDrawContext

The TextViewDrawContext to use for rendering.

MeasureOverride(Graphics, Size)

Measures the size required for the element and its child elements.

protected override Size MeasureOverride(Graphics g, Size availableSize)
Parameter Type Description
g Graphics

The Graphics to use for measurement.

availableSize Size

The available size.

Returns

Size:

The desired size.

UpdateVisibility()

Updates the visibility of the margin.

public override void UpdateVisibility()

Inherited Members