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

Struct Thickness

Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll

Syntax

public struct Thickness : IEquatable<Thickness>

Constructors

Thickness(Double)

Initializes a new instance of the System.Windows.Thickness structure that has the specified uniform length on each side.

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

The uniform length applied to all four sides of the bounding rectangle.

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)

Compares this System.Windows.Thickness structure to another System.Object for equality.

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

The object to compare.

Returns
System.Boolean

true if the two objects are equal; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)

Equals(Thickness)

Compares this System.Windows.Thickness structure to another System.Windows.Thickness structure for equality.

Declaration
public bool Equals(Thickness thickness)
Parameters
Thickness thickness

An instance of System.Windows.Thickness to compare for equality.

Returns
System.Boolean

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

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

GetHashCode()

Returns the hash code of the structure.

Declaration
public override int GetHashCode()
Returns
System.Int32

A hash code for this instance of System.Windows.Thickness.

Overrides
System.ValueType.GetHashCode()

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.

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

SerializationExtensions.GetThicknessInfo(Thickness)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

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