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 ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Border

Represents a border.

Inheritance
System.Object
Border
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents.dll

Syntax

public class Border : Object, IComparable<Border>

Constructors

Border()

Initializes a new instance of the Border class.

Declaration
public Border()

Border(Single, BorderStyle, Color)

Initializes a new instance of the Border class.

Declaration
public Border(float thickness, BorderStyle style, Color color)
Parameters
System.Single thickness

The border thickness.

BorderStyle style

The border style.

System.Windows.Media.Color color

The border color.

Border(Single, BorderStyle, Color, ThemeColorsEnum, String, String)

Initializes a new instance of the Border class.

Declaration
public Border(float thickness, BorderStyle style, Color color, ThemeColorsEnum themeColor, string themeColorShade, string themeColorTint)
Parameters
System.Single thickness

The thickness.

BorderStyle style

The style.

System.Windows.Media.Color color

The color.

ThemeColorsEnum themeColor

The theme color.

System.String themeColorShade

The theme color shade.

System.String themeColorTint

The theme color tint.

Border(Border)

Initializes a new instance of the Border class.

Declaration
public Border(Border border)
Parameters
Border border

A border to copy the properties from.

Border(BorderStyle)

Initializes a new instance of the Border class.

Declaration
public Border(BorderStyle style)
Parameters
BorderStyle style

The border style.

Border(BorderStyle, Color)

Initializes a new instance of the Border class.

Declaration
public Border(BorderStyle style, Color color)
Parameters
BorderStyle style

The border style.

System.Windows.Media.Color color

The border color.

Properties

Color

Gets the color.

Declaration
public Color Color { get; }
Property Value
System.Windows.Media.Color

The color.

Style

Gets the style.

Declaration
public BorderStyle Style { get; }
Property Value
BorderStyle

The style.

ThemeColor

Gets the theme color.

Declaration
public ThemeColorsEnum ThemeColor { get; }
Property Value
ThemeColorsEnum

The theme color.

Thickness

Gets the thickness.

Declaration
public float Thickness { get; }
Property Value
System.Single

The thickness.

Methods

CompareTo(Border)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Declaration
public int CompareTo(Border other)
Parameters
Border other

An object to compare with this instance.

Returns
System.Int32

A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes other in the sort order. Zero This instance occurs in the same position in the sort order as other. Greater than zero This instance follows other in the sort order.

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

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

The System.Object to compare with this instance.

Returns
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Converts to string.

Declaration
public override string ToString()
Returns
System.String

A System.String that represents this instance.

Operators

Equality(Border, Border)

Implements the operator ==.

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

The first.

Border second

The second.

Returns
System.Boolean

The result of the operator.

Inequality(Border, Border)

Implements the operator !=.

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

The first.

Border second

The second.

Returns
System.Boolean

The result of the operator.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
  • Themes Generator
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
  • System Requirements
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • 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.