SetStructElemEndIndent
Tagged PDF, Přístupnost
Popis
Sets the /EndIndent attribute (Layout attribute owner) on the structure element currently open on the tag stack. The value specifies the distance between the end edge of the element's content and the end edge of the content rectangle — analogous to CSS padding-right (for LrTb writing mode) or padding-left (for RlTb writing mode). Equivalent to calling AddTagAttribute with Owner=Layout, Name=EndIndent, and the numeric value as a string.
Syntaxe
Delphi
Function TPDFlib.SetStructElemEndIndent(Indent: Double): Integer;
ActiveX
Function PDFlib::SetStructElemEndIndent(Indent As Double) As Long
DLL
int DLSetStructElemEndIndent(int InstanceID, double Indent);
Parametry
| Indent | Odsazení od koncové hrany obsahu elementu ke koncové hraně obsahového obdélníku v jednotkách default user space (body, 1/72 palce). Kladné hodnoty posouvají blok od koncové hrany |
|---|
Návratová hodnota
Při úspěchu vrací 1. Vrací 0, pokud není otevřený žádný dokument nebo žádný tag v zásobníku tagů
Poznámky
Call this function after BeginTag or BeginTagEx and before EndTag. The /EndIndent attribute is defined in ISO 32000-1 §14.8.5.4.2 (Layout attribute owner, Table 340).
"Koncová hrana" závisí na režimu zápisu. Pro LrTb (zleva doprava) je to pravá hrana; pro RlTb (zprava doleva) levá. Atribut je tak citlivý na režim zápisu. Komplementární atribut viz SetStructElemStartIndent
Příklad
// Tag an indented block quote with symmetric indentation
PDFlib.BeginTag('BlockQuote', '', '', '');
PDFlib.SetStructElemStartIndent(36.0); // 0.5 inch
PDFlib.SetStructElemEndIndent(36.0); // 0.5 inch
PDFlib.DrawText('A quoted passage...', 108, 660);
PDFlib.EndTag;Viz také
SetStructElemStartIndent, SetStructElemSpaceBefore, SetStructElemWritingMode, AddTagAttribute