skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    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

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.Fixed.Legacy
Assembly: Telerik.WinControls.PdfViewer.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

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.