TParagraph Object
Properties Methods

Unit
WPRTEDefs

Declaration
TParagraph = class(TWPTextStyle)

Hierarchy
TObject <--TWPTextStyle <--TParagraph

Subclasses
None

Description
This object stores the text. It is organzied in a linked list (NextPar/PrevPar) starting from TRTFData.FirstPar. Paragraphs can also contain sub paragraphs (ChildPar). NOTE: In WPTools V4 the list was created using the pointers next and prev. This properties still exists and can be used to enumberate all paragraphs (including child paragraphs) in their logical order. Like in Version 4 tables cells are handles a paragraphs. In contrast to previous versions WPTools 5 handles child paragraphs to support multiple paragraphs in the one table cell. Even tables can be inside a table cell - (but they will always start under, and not besides of normal text since they always start on a new line.) Similar to WPTools 4 table rows work as a chain of paragraphs using IsLeft and IsRight flag. We decided not to use a special class to order the cells in a table (such as TWPTable.Rows[].Columns[]) since such a class has no advantages for the formatting of the text. It only introduces problems when tablrs have to be merged or splitted. Our approach handles each row on its own so a table merge or split is possible any time. But this does not mean there is no Row[] and Cell[] array. This properties are available in each TParagraph which is part of a table. Normally a Table starts with an empty paragraph and all rows are stored as child objects in this paragraph. The paragraph text is displayed above the rows as usually. In This case the Flag IsWPTable is true

Introduced Properties
AClass 
align 
ANSIChr 
ANSIText 
 Cell 
CellWidthTwips 
ChildPar 
 Children 
 ChildrenCount 
 ColCount 
 ColFirst 
 ColLast 
 ColLeft 
 ColNext 
 ColNr 
 ColPrior 
 ColRight 
 cols 
 ColsByName 
 ColsByXOff 
ColSpan 
 ColXOffTw 
CustomParameters 
 EndSpanH 
 EndSpanV 
 FirstLine 
 FirstSibling 
 HasChildren 
Hidden 
id 
indentfirst 
indentleft 
indentright 
 IsFirstTextPar 
 IsLastTextPar 
IsNewPage 
LastChild 
 LastInnerChild 
 LastLine 
 LastSibling 
Level 
 LineCount 
LoadedCharAttr 
 LogNextPar 
 LogPrevPar 
 MinCHeight 
 Next 
NextPar 
 nextpardown 
ObjectIndex 
ObjectRef 
 PaddingL 
ParagraphType 
 ParentCell 
 ParentGroup 
ParentPar 
 ParentParentPar 
 ParentParentRow 
 ParentParentTable 
 ParentRow 
 ParentTable 
 ParLength 
ParProtected 
 prev 
PrevPar 
 RowCount 
 RowDown 
 RowDownXLog 
 RowFirst 
 RowLast 
 RowLogNr 
 RowMerge 
 RowNext 
 rownr 
 RowPrior 
 rows 
RowSpan 
 RowUp 
 RowUpXLog 
 RTFData 
 Sibling 
 SiblingCount 
 SiblingNr 
SourceTemplate 
SourceTemplateIndex 
spaceafter 
spacebefore 
spacebetween 
 StartSpan 
 TableCount 
 Tables 
 template_rows 
TemplatePar 
Text 
WideText 

Introduced Methods
_FixAllCellWidths 
_IsWidthTw 
_SetMinMaxWidth 
AddFlagAttr 
ADelAllCharAttrDefinedIn 
ADelColumn 
ADeleteEqualSettings 
ADelRecursive 
AdjustTableRow 
AGetAllColWidth 
AGetAllInheritedFlags 
AGetBaseAndSpan 
AGetFBBGCOlor 
AGetInherited 
AGetInheritedFromCell 
AGetInheritedFromPar 
AGetParKeep 
AGetSpacing 
ANeedUpdateProps 
Append 
AppendChar 
AppendChild 
AppendInplaceEditor 
AppendNewCell 
AppendNewObject 
AppendNewObjectPair 
AppendNewPar 
AppendNewRow 
AppendNewTable 
AppendObject 
AppendPropertyGrid 
AppendPropertyRow 
AppendTextObject 
AppendTree 
AsChildOfPreviousPar 
ASetAttrInAllCharsAttr 
ASetCharStyleRecursive 
ASetColumn 
ASetColumnWidth 
ASetColumnWidthPC 
ASetNeutral 
ASetRecursive 
ASetRow 
AsNumber 
Assign 
AUpdateProps 
CalcBorderLeftRightIndent 
CalcMinimumWidth 
CalculateTableGrid 
CellSelectionAdd 
CellSelectionRemove 
CharAttrModify 
CheckTable 
ChildParagraph 
ClearCharAttr 
ClearCharAttributes 
ClearProps 
ClearText 
Compare 
ComparePar 
CompareW 
Contains 
ContainsText 
CopyChar 
CopyText 
CorrectColWidthPC 
CPOfPos 
Create 
CreateCopy 
CreateCopyList 
CreateInplaceEditor 
CreateMergedCells 
CreateRow 
CreateTable 
CurrentSection 
CurrentSectionID 
DeleteChar 
DeleteChars 
DeleteMarkedChar 
DeleteParagraph 
DeleteParagraphEnd 
DeleteParagraphKeepChildren 
DeleteParagraphWithUndo 
DeleteWPTextObj 
DelFlagAttr 
depth 
Destroy 
DetatchNextPar 
Duplicate 
Empty 
EndRow 
Exchange 
ExcludeProp 
ExcludeProps 
FirstLevelPar 
FixAllCellWidths 
FixAllRightCellWidths 
FontSizeAtPosition 
FreeNextPar 
FreeObjectRefs 
GetAllText 
GetCell 
GetCharAttr 
GetCharAttrAt 
GetCharAttrIndexAt 
GetCharAttrInterface 
GetCharCount 
GetChildrenAsList 
GetDebugTreeString 
GetEditLink 
GetFirstCharAttr 
GetLineCount 
GetLineText 
GetMultibyteText 
GetNumberText 
GetObjList 
GetParentRow 
GetRowNext 
GetRowPrior 
GetRTLCursorPos 
GetSubText 
GetText 
GetTextOfChildren 
GetWordOffset 
GetWPTextObj 
globalnext 
globalNextPar 
GridActivate 
GridUpdate 
HasAttr 
HasObjects 
HasParent 
HasProp 
HasText 
HasTextW 
Height 
HeightFN 
HeightKeepN 
HeightTotal 
HideInplaceEditors 
IDPTR 
InbetweenObjects 
IncludeProp 
IncludeProps 
InitRTLCursorPos 
InplaceEditor 
Insert 
InsertEx 
InsertNewObject 
InsertQuickly 
IsCell 
IsCharObject 
IsCharStyle 
IsEmpty 
IsEmptyWithEmptyChildren 
IsFirstPar 
IsHeaderRow 
IsLastPar 
IsLinkDelimiter 
IsLowercase 
IsNonABC 
IsNonSpace 
IsNum 
IsNumber 
IsParProtected 
IsPunctation 
IsRTL 
IsSpace 
IsTable 
IsUppercase 
IsWordDelimiter 
LastChar 
LimitCPToLineLength 
LimitLines 
LineAllCount 
LineEndOffset 
LineHeight 
LineIsLast 
LineLength 
LineOffset 
LineOfPos 
LinePageNr 
LinePosFromX 
LineStartNr 
LineXFromPos 
LineYFromPos 
LoadFromFile 
LoadFromStream 
LoadFromString 
LocateNextChar 
LocatePrevChar 
LowLevelRemoveFromList 
MakeLine 
MergeCell 
MoveChar 
MoveChildrenToTemplate 
MoveTemplateToChildren 
NeedAttr 
NeedCharPos 
nextcell 
NextLine 
OpenObjectAt 
Optimize 
OptimizeObjectRefs 
Overwrite 
paprIsLeftPar 
paprIsRightPar 
ParagraphLines 
ParagraphObjAdd 
ParagraphObjClear 
ParagraphObjCount 
ParagraphObjDel 
ParagraphObjFind 
ParagraphObjGet 
ParentCellFromTable 
ParentSubPar 
ParNr 
position 
PositionOfObject 
PosOf 
PosOfCP 
PrependChildren 
PrependNewPar 
prevcell 
PrevLine 
QuickFind 
Reformat 
ReformatTableFrame 
Refresh 
Replace 
ReplaceW 
RowAppend 
SaveToStream 
SaveToString  Error in DocComment
SetAllText 
SetCapacity 
SetCharAttr 
SetChildrenFromList 
SetColorProperty 
SetInplaceEditorIProp 
SetProperty 
SetRTFData 
SetRTLCursorPos 
SetStringProperty 
SetStyle 
SetText 
SetTextObject 
SplitAt 
SplitCell 
SplitParListBefore 
SplitRow 
SplitTable 
StartNewSection 
StartWith 
StartWithW 
SubPar 
SwapWithNextPar 
SwapWithPrevPar 
TableDepth 
TableFrame 
TextAreaWidth 
TotalLength 
Trim 
UnlinkParagraph 
UnlinkParagraphList 
UnlinkParagraphListGetNextPar 
UpdateMinMaxWidth 
UpdateTableMinMaxWidth 
ValidateTable 
XFromPosInPar 
YFromPosInPar 


WPCubed GmbH : http://www.wpcubed.com