Get method
This function finds and if necessary appends a new RTF data block, such as a header or footer text.

Applies to
TWPRTFDataCollection

Overloaded Variants
Function Get(Kind: TWPPagePropertyKind; Range: TWPPagePropertyRange; const Name: string = ''): TWPRTFDataBlock;
Function Get(Kind: TWPPagePropertyKind; Range: TWPPagePropertyRange; SectionID: Integer): TWPRTFDataBlock;
Function Get(Kind: TWPPagePropertyKind; Range: TWPPagePropertyRange; const Name: string; SctionID: Integer): TWPRTFDataBlock;

Declaration
function Get(Kind: TWPPagePropertyKind; Range: TWPPagePropertyRange; const Name: string = ''): TWPRTFDataBlock;

Description
The function first tries to locate a RTFDataBlock which matches the given specifications and if it was not found append a new one. If you know that you need to append a new TWPRTFDataBlock you can use the Append and modify the properties later, for example the property UsedForSectionID which is used to select the header or footer in a seciotn with a certain ID.

Category
Header+Footer

Declaration
function Get(Kind: TWPPagePropertyKind; Range: TWPPagePropertyRange; SectionID: Integer): TWPRTFDataBlock;

Description
This version is used to create header and footer for certain sections

Declaration
function Get(Kind: TWPPagePropertyKind; Range: TWPPagePropertyRange; const Name: string; SctionID: Integer): TWPRTFDataBlock;


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com