ClassParagraphBorders
Defines an immutable set of borders (top, bottom, left, right, between) for paragraph elements, controlling border appearance and spacing between paragraphs with identical border settings.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Styles
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class ParagraphBorders
Inheritance: objectParagraphBorders
Constructors
ParagraphBorders()
Initializes a new instance of the ParagraphBorders class with all borders set to the default border style.
Declaration
public ParagraphBorders()
ParagraphBorders(Border)
Initializes a new instance of the ParagraphBorders class with the same border applied to all sides (top, bottom, left, right, between).
Declaration
public ParagraphBorders(Border all)
Parameters
all
The border to apply to all sides.
ParagraphBorders(Border, Border, Border, Border)
Initializes a new instance of the ParagraphBorders class with individually specified borders for each side, using the default border for the between setting.
ParagraphBorders(Border, Border, Border, Border, Border)
Initializes a new instance of the ParagraphBorders class with full control over all borders, including the between border for consecutive paragraphs.
Declaration
public ParagraphBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border between)
Parameters
leftBorder
The left border.
topBorder
The top border.
rightBorder
The right border.
bottomBorder
The bottom border.
between
The between border for consecutive paragraphs with identical border settings.
ParagraphBorders(ParagraphBorders, Border, Border, Border, Border, Border)
Initializes a new instance of the ParagraphBorders class by copying from a source instance and selectively replacing specified borders while preserving others.
Declaration
public ParagraphBorders(ParagraphBorders source, Border leftBorder = null, Border topBorder = null, Border rightBorder = null, Border bottomBorder = null, Border between = null)
Parameters
source
The source paragraph borders to copy from.
leftBorder
The left border to replace, or null to preserve the source value.
topBorder
The top border to replace, or null to preserve the source value.
rightBorder
The right border to replace, or null to preserve the source value.
bottomBorder
The bottom border to replace, or null to preserve the source value.
between
The between border to replace, or null to preserve the source value.
Properties
Between
Gets the border displayed between consecutive paragraphs that share identical border settings, replacing individual top/bottom borders for visual continuity.
Declaration
public Border Between { get; }
Property Value
The between border.
Bottom
Gets the border displayed at the bottom edge of the paragraph.
Declaration
public Border Bottom { get; }
Property Value
The bottom border.
Left
Gets the border displayed at the left edge of the paragraph.
Right
Gets the border displayed at the right edge of the paragraph.
Methods
GetHashCode()
Serves as a hash function for a particular type.
SetBetween(Border)
Creates a new paragraph borders instance with the specified between border, preserving all other borders from the current instance.
Declaration
public ParagraphBorders SetBetween(Border between)
Parameters
between
The between.
Returns
New instance of paragraph borders.
SetBottom(Border)
Creates a new paragraph borders instance with the specified bottom border, preserving all other borders from the current instance.
Declaration
public ParagraphBorders SetBottom(Border bottom)
Parameters
bottom
The bottom.
Returns
New instance of paragraph borders.
SetLeft(Border)
Creates a new paragraph borders instance with the specified left border, preserving all other borders from the current instance.
Declaration
public ParagraphBorders SetLeft(Border left)
Parameters
left
The left.
Returns
New instance of paragraph borders.
SetRight(Border)
Creates a new paragraph borders instance with the specified right border, preserving all other borders from the current instance.
Declaration
public ParagraphBorders SetRight(Border right)
Parameters
right
The right.
Returns
New instance of paragraph borders.
SetTop(Border)
Creates a new paragraph borders instance with the specified top border, preserving all other borders from the current instance.
Declaration
public ParagraphBorders SetTop(Border top)
Parameters
top
The top.
Returns
New instance of paragraph borders.
Operators
operator !=(ParagraphBorders, ParagraphBorders)
Determines whether the specified paragraph borders are different.
Declaration
public static bool operator !=(ParagraphBorders a, ParagraphBorders b)
Parameters
a
b
Returns
True if the paragraph borders are different.
operator ==(ParagraphBorders, ParagraphBorders)
Determines whether the specified paragraph borders are equal.
Declaration
public static bool operator ==(ParagraphBorders a, ParagraphBorders b)
Parameters
a
b
Returns
True if the paragraph borders are equal.