skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ParagraphBorders

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.

Inheritance
System.Object
ParagraphBorders
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Flow.Model.Styles
Assembly: Telerik.Windows.Documents.Flow.dll

Syntax

public class ParagraphBorders

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
Border 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.

Declaration
public ParagraphBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder)
Parameters
Border leftBorder

The left border.

Border topBorder

The top border.

Border rightBorder

The right border.

Border bottomBorder

The bottom border.

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
Border leftBorder

The left border.

Border topBorder

The top border.

Border rightBorder

The right border.

Border bottomBorder

The bottom border.

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
ParagraphBorders source

The source paragraph borders to copy from.

Border leftBorder

The left border to replace, or null to preserve the source value.

Border topBorder

The top border to replace, or null to preserve the source value.

Border rightBorder

The right border to replace, or null to preserve the source value.

Border bottomBorder

The bottom border to replace, or null to preserve the source value.

Border 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
Border

The between border.

Bottom

Gets the border displayed at the bottom edge of the paragraph.

Declaration
public Border Bottom { get; }
Property Value
Border

The bottom border.

Left

Gets the border displayed at the left edge of the paragraph.

Declaration
public Border Left { get; }
Property Value
Border

The left border.

Right

Gets the border displayed at the right edge of the paragraph.

Declaration
public Border Right { get; }
Property Value
Border

The right border.

Top

Gets the border displayed at the top edge of the paragraph.

Declaration
public Border Top { get; }
Property Value
Border

The top border.

Methods

Equals(Object)

Determines whether the specified System.Object is equal to the current System.Object.

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

The System.Object to compare with the current System.Object.

Returns
System.Boolean

Returns true if the specified System.Object is equal to the current System.Object; otherwise, false.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration
public override int GetHashCode()
Returns
System.Int32

A hash code for the current System.Object.

Overrides
System.Object.GetHashCode()

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
Border between

The between.

Returns
ParagraphBorders

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
Border bottom

The bottom.

Returns
ParagraphBorders

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
Border left

The left.

Returns
ParagraphBorders

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
Border right

The right.

Returns
ParagraphBorders

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
Border top

The top.

Returns
ParagraphBorders

New instance of paragraph borders.

Operators

Equality(ParagraphBorders, ParagraphBorders)

Determines whether the specified paragraph borders are equal.

Declaration
public static bool operator ==(ParagraphBorders a, ParagraphBorders b)
Parameters
ParagraphBorders a

ParagraphBorders b

Returns
System.Boolean

True if the paragraph borders are equal.

Inequality(ParagraphBorders, ParagraphBorders)

Determines whether the specified paragraph borders are different.

Declaration
public static bool operator !=(ParagraphBorders a, ParagraphBorders b)
Parameters
ParagraphBorders a

ParagraphBorders b

Returns
System.Boolean

True if the paragraph borders are different.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.