PrinterDocumentTitleMargin Class
Represents a default implementation of a document title margin for an IPrinterView.
public class PrinterDocumentTitleMargin : PrinterViewMarginBase, IPrinterViewMargin, ITextViewMargin, IOrderable, IKeyedObject
- Inheritance:
- object Visual UIElement FrameworkElement Control PrinterViewMarginBase object
- Implements:
- IPrinterViewMargin ITextViewMargin IOrderable IKeyedObject
Constructors
PrinterDocumentTitleMargin(IPrinterView)
Initializes an instance of the PrinterDocumentTitleMargin
class.
public PrinterDocumentTitleMargin(IPrinterView view)
Parameter | Type | Description |
---|---|---|
view | IPrinterView | The IPrinterView that will host the margin. |
Properties
DocumentTitle
Gets the document title to display.
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. |
MeasureOverride(Size)
Measures the size required for the element and its child elements.
protected override Size MeasureOverride(Size availableSize)
Parameter | Type | Description |
---|---|---|
availableSize | Size | The available size. |
Returns
- Size:
The desired size.
UpdateVisibility()
Updates the visibility of the margin.
public override void UpdateVisibility()