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

Struct Thickness

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Telerik.WinControls.RichTextEditor.UI
Assembly: Telerik.WinControls.RichTextEditor.dll

Syntax

public struct Thickness : IEquatable<Thickness>

Constructors

Thickness(Double)

Declaration
public Thickness(double uniformWidth)
Parameters
System.Double uniformWidth

Thickness(Double, Double, Double, Double)

Declaration
public Thickness(double left, double top, double right, double bottom)
Parameters
System.Double left

System.Double top

System.Double right

System.Double bottom

Properties

Bottom

Gets or sets the width, in pixels, of the lower side of the bounding rectangle.

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

A System.Double that represents the width, in pixels, of the lower side of the bounding rectangle for this instance of System.Windows.Thickness. A pixel is equal to 1/96 of an inch. The default is 0.

Left

Gets or sets the width, in pixels, of the left side of the bounding rectangle.

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

A System.Double that represents the width, in pixels, of the left side of the bounding rectangle for this instance of System.Windows.Thickness. a pixel is equal to 1/96 on an inch. The default is 0.

Right

Gets or sets the width, in pixels, of the right side of the bounding rectangle.

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

A System.Double that represents the width, in pixels, of the right side of the bounding rectangle for this instance of System.Windows.Thickness. A pixel is equal to 1/96 of an inch. The default is 0.

Top

Gets or sets the width, in pixels, of the upper side of the bounding rectangle.

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

A System.Double that represents the width, in pixels, of the upper side of the bounding rectangle for this instance of System.Windows.Thickness. A pixel is equal to 1/96 of an inch. The default is 0.

Methods

Equals(Object)

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

Returns
System.Boolean

Overrides
System.ValueType.Equals(System.Object)

Equals(Thickness)

Declaration
public bool Equals(Thickness thickness)
Parameters
Thickness thickness

Returns
System.Boolean

Implements
System.IEquatable<T>.Equals(T)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.ValueType.GetHashCode()

ToString()

Returns the string representation of the System.Windows.Thickness structure.

Declaration
public override string ToString()
Returns
System.String

A System.String that represents the System.Windows.Thickness value.

Overrides
System.ValueType.ToString()

Operators

Equality(Thickness, Thickness)

Compares the value of two System.Windows.Thickness structures for equality.

Declaration
public static bool operator ==(Thickness t1, Thickness t2)
Parameters
Thickness t1

The first structure to compare.

Thickness t2

The other structure to compare.

Returns
System.Boolean

true if the two instances of System.Windows.Thickness are equal; otherwise, false.

Implicit(Padding to Thickness)

Declaration
public static implicit operator Thickness(Padding me)
Parameters
System.Windows.Forms.Padding me

Returns
Thickness

Implicit(Thickness to Padding)

Declaration
public static implicit operator Padding(Thickness me)
Parameters
Thickness me

Returns
System.Windows.Forms.Padding

Inequality(Thickness, Thickness)

Compares two System.Windows.Thickness structures for inequality.

Declaration
public static bool operator !=(Thickness t1, Thickness t2)
Parameters
Thickness t1

The first structure to compare.

Thickness t2

The other structure to compare.

Returns
System.Boolean

true if the two instances of System.Windows.Thickness are not equal; otherwise, false.

Extension Methods

ExtensionMethods.ToPadding(Thickness)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.