In This Article

EditorOutliningMargin Class

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

public class EditorOutliningMargin : EditorViewMarginBase, IInputElement, IUIElement, ILogicalTreeNode, IDisposable, IEditorViewMargin, ITextViewMargin, IOrderable, IKeyedObject
Inheritance:
Object MarshalByRefObject DisposableObject LogicalTreeNodeBase UIElement EditorViewMarginBase Object
Implements:
IInputElement IUIElement ILogicalTreeNode IDisposable IEditorViewMargin ITextViewMargin IOrderable IKeyedObject

Constructors

EditorOutliningMargin(IEditorView)

Initializes an instance of the EditorOutliningMargin class.

public EditorOutliningMargin(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.

GetCursor(Point)

Gets the Cursor that should be used when the mouse is over the element at the specified Point.

public override Cursor GetCursor(Point point)
Parameter Type Description
point Point

The Point to examine.

Returns

Cursor:

The Cursor that should be used when the mouse is over the element at the specified Point.

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