Provides the abstract base class for a printer view margin.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control object
- Derived:
-
Printer
Document PrinterTitle Margin Line PrinterNumber Margin Page PrinterNumber Margin Word Wrap Glyph Margin
- Implements:
-
IPrinter
View ITextMargin View IOrderable IKeyedMargin Object
Constructors
PrinterViewMarginBase(IPrinterView, string, PrinterViewMarginPlacement, IEnumerable<Ordering>)
Initializes an instance of the PrinterViewMarginBase
class.
Parameter | Type | Description |
---|---|---|
view | IPrinter |
The IPrinter |
key | string | The string-based key that identifies the margin. |
placement | Printer |
A Editor |
orderings | IEnumerable<Ordering> | The collection of Ordering objects, used to determine how this object is positioned relative to other objects. |
Properties
Key
Gets the string-based key that identifies the margin.
Property Value
- string:
The string-based key that identifies the margin.
Orderings
Gets the collection of Ordering objects, used to determine how this object is positioned relative to other objects.
Property Value
- IEnumerable<Ordering>:
The collection of Ordering objects, used to determine how this object is positioned relative to other objects.
Placement
Gets a Printer
Property Value
- Printer
View :Margin Placement A Printer
View indicating the placement of the margin within its parent IPrinterMargin Placement View .
View
Gets the IPrinter
Property Value
- IPrinter
View : The IPrinter
View that contains this margin.
VisualElement
Gets the Framework
Property Value
- Framework
Element : The Framework
Element that is used to render this margin in the user interface.
Methods
Draw(TextViewDrawContext)
Draws the margin and its content.
Parameter | Type | Description |
---|---|---|
context | Text |
The Text |
UpdateVisibility()
Updates the visibility of the margin.