Paragraph Object

The Paragraph object serves for controlling a ConceptDraw shape's text paragraph. It represents a block of text that ends with a line feed symbol. Shape's text may have several paragraphs. A paragraph contains the parameters for alignment, indents, line spacing and other of the text which it contains.

Properties

Name Description
AfterSpacing The distance between this paragraph and the one below.
BeforeSpacing The distance between this paragraph and the one above.
Count Read Only. Returns the number of characters in the paragraph.
FirstInd The first line indent value.
HAlign The horizontal alignment type for the paragraph.
LeftInd The distance all lines of text in a paragraph are indented from the left margin of the text block.
LineSpacing The distance between one line of text and the next.
RightInd The distance all lines of text in a paragraph are indented from the right margin of the text block.

Remarks

Paragraphs are stored in a ConceptDraw shape and describe the appearance of the shape's text. The Shape object contains a number of methods for working with its own paragraph collection. Each paragraph describes the number of symbols specified in the Count property. Paragraph properties are applied to the shape's text in the same order as the paragraphs are located in the paragraph collection of the shape.

An instance of the Paragraph object can be retrieved by using the following properties and methods:
Document object: DefParagraph property.
Shape object: Paragraph method.
Style object: Paragraph property.

To create a new paragraph with specified parameter in a shape, use the following methods of the Shape object: SetParaAfterSpacing method, SetParaBeforeSpacing method, SetParaFirstInd method, SetParaHAlign method, SetParaLeftInd method, SetParaLineSpacing method, SetParaRightInd method.

 

See Also

Character object, Document object, Shape object, Style object, TextBlock object