Class Title
Please see Example_41
public class Title : IDrawable
- Inheritance
-
Title
- Implements
- Inherited Members
Constructors
Title(Font, string, float, float)
Creates a title at the specified location.
public Title(Font font, string title, float x, float y)
Parameters
Methods
DrawOn(Page)
Draws the prefix and the title text on the specified page.
public float[] DrawOn(Page page)
Parameters
pagePage
Returns
- float[]
GetPrefix()
Returns the prefix drawn before the title text, such as a section number.
public TextLine GetPrefix()
Returns
GetTextLine()
Returns the title text.
public TextLine GetTextLine()
Returns
SetLocation(float, float)
Sets the location of the prefix; the title text keeps its offset from it.
public Title SetLocation(float x, float y)
Parameters
Returns
SetOffset(float)
Sets the distance from the start of the prefix to the start of the title text, to make room for the prefix.
public Title SetOffset(float offset)
Parameters
offsetfloat
Returns
SetPrefix(string)
Sets the prefix text.
public Title SetPrefix(string text)
Parameters
textstring