Class PageHeader
Represents header/footer parts of the Editor page.
public class PageHeader : IEditPageHeader, IUpdate, IDisposable
- Inheritance
-
PageHeader
- Implements
Constructors
- PageHeader()
Initializes a new instance of
PageHeaderclass with default settings.
- PageHeader(IEditPage, ISyntaxEdit)
Initializes a new instance of
PageHeaderclass with a specified owner.
Properties
- CenterText
Gets or sets a string that appears at the center of the header/footer area.
- Font
Gets or sets font used to draw header/footer text.
- FontColor
Gets or sets font color used to draw header/footer text.
- LeftText
Gets or sets a string that appears at the left part of the header/footer area.
- Offset
Gets or sets indentation of the primary text edge.
- ReverseOnEvenPages
Gets or sets a value indicating whether the
LeftTextandRightTextinterchanging on even page.
- RightText
Gets or sets a string that appears at the right part of the header/footer area.
- UpdateCount
Keeps track of calls to
BeginUpdateandEndUpdateso that they can be nested.
- Visible
Gets or sets a value indicating whether the
PageHeaderis visible.
Methods
- Assign(IEditPageHeader)
Copies the contents of another
IEditPageHeaderobject.
- BeginUpdate()
Prevents PageHeader updating until calling
PageHeader.EndUpdatemethod.
- DisableUpdate()
Prevents PageHeader updating until calling
PageHeader.EndUpdatemethod.
- Dispose()
Disposes this
PageHeaderand frees resources associated with it.
- EnableUpdate()
Re-enables PageHeader updating, that was turn of by calling
PageHeader.BeginUpdatemethod.
- EndUpdate()
Re-enables page updating, that was turn of by calling
PageHeader.BeginUpdatemethod.
- ~PageHeader()
Destroys the instance of the
PageHeaderclass.
- GetTextToPaint(string, int, int)
Replaces all tags in the given text by their values.
- Paint(IPainter, Rectangle, int, int, bool)
Draws page header/footer on the specified graphic surface.
- ResetFont()
Resets the
PageHeader.Fontto the default value.
- ResetFontColor()
Resets the
PageHeader.FontColorto the default value.
- ResetOffset()
Resets the
PageHeader.Offsetto the default value.
- ResetReverseOnEvenPages()
Resets the
PageHeader.ReverseOnEvenPagesto the default value.
- ShouldSerializeFont()
Indicates whether the
Fontproperty should be persisted.
- ShouldSerializeFontColor()
Indicates whether the
FontColorproperty should be persisted.
- ShouldSerializeOffset()
Indicates whether the
Offsetproperty should be persisted.
- Update()
Invalidates the header.
Events
- DrawHeader
Occurs when header or footer part of each page is drawing.