skip navigation
  • Product Bundles

    DevCraft

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

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • 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 Border

Describes the settings which are used to determine how the border will appear in the document. This class is immutable.

Inheritance
System.Object
Border
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 Border : IComparable<Border>

Constructors

Border(Double, BorderStyle, ThemableColor)

Initializes a new instance of the Border class.

Declaration
public Border(double thickness, BorderStyle style, ThemableColor color)
Parameters
System.Double thickness

The thickness.

BorderStyle style

The style.

ThemableColor color

The color.

Border(Double, BorderStyle, ThemableColor, Boolean, Boolean, Double)

Initializes a new instance of the Border class.

Declaration
public Border(double thickness, BorderStyle style, ThemableColor color, bool shadow, bool frame, double spacing)
Parameters
System.Double thickness

The thickness.

BorderStyle style

The style.

ThemableColor color

The color.

System.Boolean shadow

The shadow.

System.Boolean frame

The frame.

System.Double spacing

The spacing.

Border(Border)

Initializes a new instance of the Border class.

Declaration
public Border(Border border)
Parameters
Border border

The border.

Border(BorderStyle)

Initializes a new instance of the Border class.

Declaration
public Border(BorderStyle style)
Parameters
BorderStyle style

The style.

Properties

Color

Gets the color of the border.

Declaration
public ThemableColor Color { get; }
Property Value
ThemableColor

The color.

Frame

Gets a value indicating whether the border should have frame effect.

Declaration
public bool Frame { get; }
Property Value
System.Boolean

The frame.

Shadow

Gets a value indicating whether the border should have shadow effect.

Declaration
public bool Shadow { get; }
Property Value
System.Boolean

The shadow.

Spacing

Gets the spacing of the border.

Declaration
public double Spacing { get; }
Property Value
System.Double

The spacing.

Style

Gets the style of the border.

Declaration
public BorderStyle Style { get; }
Property Value
BorderStyle

The style.

Thickness

Gets the thickness of the border.

Declaration
public double Thickness { get; }
Property Value
System.Double

The thickness.

Methods

CompareTo(Border)

Compares a borders to another.

Declaration
public int CompareTo(Border other)
Parameters
Border other

The other.

Returns
System.Int32

Implements
System.IComparable<T>.CompareTo(T)

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()

Operators

Equality(Border, Border)

Determines whether the specified borders are equal.

Declaration
public static bool operator ==(Border first, Border second)
Parameters
Border first

Border second

Returns
System.Boolean

True if the borders are equal.

Inequality(Border, Border)

Determines whether the specified borders are different.

Declaration
public static bool operator !=(Border first, Border second)
Parameters
Border first

Border second

Returns
System.Boolean

True if the 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.