EditorWordWrapGlyphMargin Class
Represents a default implementation of a word wrap glyph margin for an IEditorView.
public class EditorWordWrapGlyphMargin : EditorViewMarginBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IEditorViewMargin, ITextViewMargin, IOrderable, IKeyedObject
- Inheritance:
- Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control EditorViewMarginBase Object
- Implements:
- IEditorViewMargin ITextViewMargin IOrderable IKeyedObject
Constructors
EditorWordWrapGlyphMargin(IEditorView)
Initializes an instance of the EditorWordWrapGlyphMargin
class.
public EditorWordWrapGlyphMargin(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. |
OnCreateAutomationPeer()
Returns an AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
An AutomationPeer instance.
UpdateVisibility()
Updates the visibility of the margin.
public override void UpdateVisibility()
Inherited Members
- EditorViewMarginBase.IEditorViewMargin.get_Visibility()
- EditorViewMarginBase.Key
- EditorViewMarginBase.Orderings
- EditorViewMarginBase.Placement
- EditorViewMarginBase.View
- EditorViewMarginBase.VisualElement
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()