EditorViewMarginBase Class
Provides the abstract base class for an editor view margin.
public abstract class EditorViewMarginBase : UIElement, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IEditorViewMargin, ITextViewMargin, IOrderable, IKeyedObject
- Inheritance:
- object MarshalByRefObject MarshalByRefDisposableObject LogicalTreeNodeBase UIElement object
- Derived:
- EditorIndicatorMargin EditorLineNumberMargin EditorOutliningMargin EditorRulerMargin EditorSelectionMargin EditorWordWrapGlyphMargin
- Implements:
- IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IEditorViewMargin ITextViewMargin IOrderable IKeyedObject
Constructors
EditorViewMarginBase(IEditorView, string, EditorViewMarginPlacement, IEnumerable<Ordering>?)
Initializes an instance of the class.
protected EditorViewMarginBase(IEditorView view, string key, EditorViewMarginPlacement placement, IEnumerable<Ordering>? orderings)
| Parameter | Type | Description |
|---|---|---|
| view | IEditorView | The IEditorView that will host the margin. |
| key | string | The string-based key that identifies the margin. |
| placement | EditorViewMarginPlacement | A EditorViewMarginPlacement indicating the placement of the margin within its parent IEditorView. |
| orderings | IEnumerable<Ordering> | The collection of Ordering objects, used to determine how this object is positioned relative to other objects. |
Properties
Key
The string-based key that identifies the object.
Orderings
The collection of Ordering objects, used to determine how this object is positioned relative to other objects.
Placement
A EditorViewMarginPlacement indicating the placement of the margin within its parent IEditorView.
View
The IEditorView that contains this margin.
Visibility
The element's visibility.
public Visibility Visibility { get; }
Property Value
- Visibility:
A Visibility that specifies the element's visibility.
VisualElement
The IUIElement that is used to render this margin in the user interface.
Methods
Draw(TextViewDrawContext)
Draws the margin and its content.
public virtual void Draw(TextViewDrawContext context)
| Parameter | Type | Description |
|---|---|---|
| context | TextViewDrawContext | The TextViewDrawContext to use for rendering. |
UpdateVisibility()
Updates the visibility of the margin.
public virtual void UpdateVisibility()
Inherited Members
- UIElement.Dispose(bool)
- UIElement.AddPendingGraphicsInversion(Rectangle)
- UIElement.AddPendingScrollOperation(Rectangle, Orientation, int)
- UIElement.AddPendingScrollOperation(Rectangle, int, int)
- UIElement.Arrange(Rectangle)
- UIElement.ArrangeOverride(Size)
- UIElement.CaptureMouse()
- UIElement.ContainsLocation(Point)
- UIElement.CreateGraphics()
- UIElement.DpiScaleChanged(SizeF)
- UIElement.GetCursor(Point)
- UIElement.GetDrawState()
- UIElement.Invalidate()
- UIElement.Invalidate(Rectangle)
- UIElement.Invalidate(InvalidationLevels, InvalidationTypes)
- UIElement.InvalidateArrange()
- UIElement.InvalidateMeasure()
- UIElement.Measure(Graphics, Size)
- UIElement.MeasureOverride(Graphics, Size)
- UIElement.OnClick(MouseEventArgs)
- UIElement.OnDoubleClick(MouseEventArgs)
- UIElement.OnMouseCaptureLost(EventArgs)
- UIElement.OnMouseDown(MouseEventArgs)
- UIElement.OnMouseEnter(MouseEventArgs)
- UIElement.OnMouseHover(MouseEventArgs)
- UIElement.OnMouseLeave(MouseEventArgs)
- UIElement.OnMouseMove(MouseEventArgs)
- UIElement.OnMouseUp(MouseEventArgs)
- UIElement.OnMouseWheel(MouseEventArgs)
- UIElement.OnParentChanged()
- UIElement.OnRender(PaintEventArgs)
- UIElement.OnRenderChildElements(PaintEventArgs)
- UIElement.OnResize(EventArgs)
- UIElement.PostArrangeOverride()
- UIElement.ReleaseMouseCapture()
- UIElement.Render(PaintEventArgs)
- UIElement.TransformToAncestor(IUIElement)
- UIElement.TransformToDescendant(IUIElement)
- UIElement.UpdateLayout()
- UIElement.ActualHeight
- UIElement.ActualWidth
- UIElement.Bounds
- UIElement.CaptureMouseWhenPressed
- UIElement.ClipBounds
- UIElement.DesiredSize
- UIElement.DpiScaleFactor
- UIElement.InvalidateOnMouseEvents
- UIElement.IsArrangeValid
- UIElement.IsMeasureValid
- UIElement.IsMouseCaptured
- UIElement.IsMouseDirectlyOver
- UIElement.IsRightToLeft
- UIElement.Size
- UIElement.VisualOffset
- UIElement.Click
- UIElement.DoubleClick
- UIElement.MouseCaptureLost
- UIElement.MouseDown
- UIElement.MouseEnter
- UIElement.MouseHover
- UIElement.MouseLeave
- UIElement.MouseMove
- UIElement.MouseUp
- UIElement.MouseWheel
- UIElement.Resize
- LogicalTreeNodeBase.CreateChildren()
- MarshalByRefDisposableObject.Dispose()
- MarshalByRefDisposableObject.VerifyNotDisposed()
- MarshalByRefDisposableObject.IsDisposed
- MarshalByRefDisposableObject.Disposed
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()