In This Article

EditorViewHost Class

Represents an element that can lay out editor views within a SyntaxEditor.

public class EditorViewHost : UIElement, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable
Inheritance:
object MarshalByRefObject DisposableObject LogicalTreeNodeBase UIElement object
Implements:
IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable

Constructors

EditorViewHost()

Initializes an instance of the EditorViewHost class.

public EditorViewHost()

Methods

ArrangeOverride(Size)

Positions child elements and returns the element's size.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize Size

The size within the parent that this element should use to arrange itself and its children.

Returns

Size:

The actual size used.

CreateChildren()

Invoked when the collection of child elements is to be created.

protected override IList CreateChildren()

Returns

IList:

The IList that should be assigned to the Children property.

Remarks

By default no child collection is created.

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.

Inherited Members