Table of Contents

Class Title

Namespace
PDFjet.NET
Assembly
PDFjet.dll

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

font Font
title string
x float
y float

Methods

DrawOn(Page)

Draws the prefix and the title text on the specified page.

public float[] DrawOn(Page page)

Parameters

page Page

Returns

float[]

GetPrefix()

Returns the prefix drawn before the title text, such as a section number.

public TextLine GetPrefix()

Returns

TextLine

GetTextLine()

Returns the title text.

public TextLine GetTextLine()

Returns

TextLine

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

x float
y float

Returns

Title

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

offset float

Returns

Title

SetPrefix(string)

Sets the prefix text.

public Title SetPrefix(string text)

Parameters

text string

Returns

Title