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 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
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TableCellBorders

Represents collection of TableCell borders. This class is immutable.

Inheritance
System.Object
TableCellBorders
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public class TableCellBorders : Object

Constructors

TableCellBorders()

Initializes a new instance of the TableCellBorders class.

Declaration
public TableCellBorders()

TableCellBorders(Single, Single, Single, Single, BorderStyle, Color)

Initializes a new instance of the TableCellBorders class.

Declaration
public TableCellBorders(float left, float top, float right, float bottom, BorderStyle style, Color color)
Parameters
System.Single left

The left.

System.Single top

The top.

System.Single right

The right.

System.Single bottom

The bottom.

BorderStyle style

The style which will be used for all borders.

System.Windows.Media.Color color

The color which will be used for all borders.

TableCellBorders(Single, BorderStyle, Color)

Initializes a new instance of the TableCellBorders class.

Declaration
public TableCellBorders(float all, BorderStyle style, Color color)
Parameters
System.Single all

The thickness of the borders.

BorderStyle style

The style which will be used for all borders.

System.Windows.Media.Color color

The color which will be used for all borders.

TableCellBorders(Border)

Initializes a new instance of the TableCellBorders class.

Declaration
public TableCellBorders(Border all)
Parameters
Border all

The border which will be used for all cell borders, excluding inside borders.

TableCellBorders(Border, Border, Border, Border)

Initializes a new instance of the TableCellBorders class.

Declaration
public TableCellBorders(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.

TableCellBorders(Border, Border, Border, Border, Border, Border)

Initializes a new instance of the TableCellBorders class.

Declaration
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder, Border insideVerticalBorder)
Parameters
Border leftBorder

The left border.

Border topBorder

The top border.

Border rightBorder

The right border.

Border bottomBorder

The bottom border.

Border insideHorizontalBorder

The inside horizontal border.

Border insideVerticalBorder

The inside vertical border.

TableCellBorders(BorderStyle, Color)

Initializes a new instance of the TableCellBorders class.

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

The style which will be used for all borders.

System.Windows.Media.Color color

The color which will be used for all borders.

TableCellBorders(TableCellBorders)

Initializes a new instance of the TableCellBorders class.

Declaration
public TableCellBorders(TableCellBorders other)
Parameters
TableCellBorders other

A TableCellBorders instance to copy the properties from.

Properties

All

Gets all border if they are equal. Does not take into account the inside borders.

Declaration
public Border All { get; }
Property Value
Border

All borders without inside borders.

AllIncludingInside

Gets all border if they are equal. This property does take into account the inside borders.

Declaration
public Border AllIncludingInside { get; }
Property Value
Border

All borders.

Bottom

Gets the bottom border.

Declaration
public Border Bottom { get; }
Property Value
Border

The bottom border.

InsideHorizontal

Gets the inside horizontal border. This border is only used with conditional styles.

Declaration
public Border InsideHorizontal { get; }
Property Value
Border

The inside horizontal border.

InsideVertical

Gets the inside vertical border. This border is only used with conditional styles.

Declaration
public Border InsideVertical { get; }
Property Value
Border

The inside vertical border.

Left

Gets the left border.

Declaration
public Border Left { get; }
Property Value
Border

The left border.

Right

Gets the right border.

Declaration
public Border Right { get; }
Property Value
Border

The right border.

Top

Gets the top border.

Declaration
public Border Top { get; }
Property Value
Border

The top border.

Methods

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.

SetBottom(Border)

Returns new TableCellBorders object with the specified bottom border.

Declaration
public TableCellBorders SetBottom(Border newBottomBorder)
Parameters
Border newBottomBorder

The new bottom border.

Returns
TableCellBorders

SetInsideHorizontal(Border)

Returns new TableCellBorders object with the specified horizontal border.

Declaration
public TableCellBorders SetInsideHorizontal(Border newInsideHorizontal)
Parameters
Border newInsideHorizontal

The new inside horizontal.

Returns
TableCellBorders

SetInsideVertical(Border)

Returns new TableCellBorders object with the specified vertical border.

Declaration
public TableCellBorders SetInsideVertical(Border newInsideVertical)
Parameters
Border newInsideVertical

The new inside vertical.

Returns
TableCellBorders

SetLeft(Border)

Returns new TableCellBorders object with the specified left border.

Declaration
public TableCellBorders SetLeft(Border newLeftBorder)
Parameters
Border newLeftBorder

The new left border.

Returns
TableCellBorders

SetRight(Border)

Returns new TableCellBorders object with the specified right border.

Declaration
public TableCellBorders SetRight(Border newRightBorder)
Parameters
Border newRightBorder

The new right border.

Returns
TableCellBorders

SetTop(Border)

Returns new TableCellBorders object with the specified top border.

Declaration
public TableCellBorders SetTop(Border newTopBorder)
Parameters
Border newTopBorder

The new top border.

Returns
TableCellBorders

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
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.