SharpLeaf Reference > ParagraphStyle Structure ParagraphStyle Structure
Text and paragraph settings for basic typesetting.
Because ParagraphStyles are passed by reference, they can be modified in-flight after being assigned. See the advanced text tutorial for examples.
ParagraphStyles can often be amended with a string description as provided by the ToString method.
public class ParagraphStyle
Constructors
ParagraphStyle Instance PropertiesAlignment | Text horizontal alignment within frame (default is Alignment.Left) | BookmarkLevel | Level of automatic bookmarking at each new paragraph (defaults to 0 for disabled) | BookmarkOpened | Flag for automatic bookmarks to be opened in the viewer (defaults to false) | BulletFont | Bullet Font (default to null for working paragraph font) | BulletIndent | Extra indenting in points for bulletted paragraphs (defaults to 0) | ClearLeft | This paragraph type will skip all inclusions on the left margin before starting (default is false) | ClearRight | This paragraph type will skip all inclusions on the right margin before starting (default is false) | Font | Working font (name, size, style, color and interline) | FrameBreak | This paragraph type will always begin in a new frame (default is false) | HorizontalGap | Horizontal space around inclusions, bullets and boxes (positive is absolute size in points, negative is multiple of line pitch) | IndentFirst | First line indent in points (default is 0) | IndentFirstAfterChange | Flag to control first indent after a change of style (true by default) | IndentLeft | Left indent in points from edge of frame (default is 0) | IndentRight | Right indent in points from edge of frame (default is 0) | Keep | Number of lines to keep together at the start or end of a paragraph – also known as widows and orphans (default is 1 for disabled) | PageBreak | This paragraph type will always begin on a new page (default is false) | SpaceAfter | Trailing paragraph space (positive is absolute size in points, negative is multiple of line pitch) (default is 0) | SpaceBefore | Leading paragraph space (positive is absolute size in points, negative is multiple of line pitch) (default is 0) | SpaceBetween | Flag to enable SpaceBefore and SpaceAfter between paragraphs using the same style (defaults to true) | SpaceFollowing | Available space to bottom of frame which must follow this paragraph (positive is absolute size in points, negative is multiple of line pitch) (defaults to 0) | SpaceStarting | Available space to bottom of frame required to start this paragraph (positive is absolute size in points, negative is multiple of line pitch) (defaults to 0) | Wrap | Wrap text between margin (defaults to true) |
ParagraphStyle MethodsAddTab | Define a new tab with position and optional alignment – clearing default tabs if unset so far | Clone | Take a deep copy of a ParagraphStyle, so that properties can be changed without changing the original style | ResetTabs | Set tab-bar back to system default of twelve 72pt tabs | Set | Update current style with a set of properties and values as a string | SetBullet | Set string to use for bulletted lists (defaults to empty string to disable bullets) | SetTabAlignments | Set Alignment for each existing tab stop (defaults to Alignment.Left) | SetTabs | Set the full list of tab stops positions in points from left edge of frame | ToString | Parsable summary of style settings | |
See also
Paragraph Tutorial | Paragraph Glossary | SharpLeaf.Style
RequirementsNamespace: Causeway Assembly: SharpPlot (in sharpplot.dll)
Send comments on this topic © Dyalog Ltd 2021
|