ThicknessHelper class
Collapse the table of content
Expand the table of content

ThicknessHelper class

Provides helper methods to evaluate or set Thickness values. C# and Microsoft Visual Basic code should use members of Thickness instead.

Inheritance

Object
  ThicknessHelper

Syntax


public ref class ThicknessHelper sealed 

Members

The ThicknessHelper class inherits from Object and IThicknessHelper. ThicknessHelper also has these types of members:

Methods

The ThicknessHelper class has these methods. It also inherits methods from the Object class.

MethodDescription
FromLengths Creates a Thickness value based on element values. C# and Microsoft Visual Basic code should use Thickness(Double,Double,Double,Double) instead.
FromUniformLength Creates a new Thickness value using a uniform value for all the element values. C# and Microsoft Visual Basic code should use Thickness(Double) instead.

 

Remarks

Thickness is a Windows Runtime structure that represents a pixel measure applied to the outside (margin) or inside (padding) render dimensions of a rectangular UI element. For example, Border.BorderThickness uses a Thickness value.

ThicknessHelper is one of several Helper classes that are intended to provide utility methods for Windows Runtime structure values. C# and Visual Basic code can use members of Thickness instead, because utility members are available directly on the structure due to .NET Framework runtime support. C++ code can only access the data values on Thickness, for example the Top field value. For C++ developers, approximately the same utility features that a Visual Basic developer could use directly on Thickness are available in a static form on the ThicknessHelper class.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows::UI::Xaml

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
Thickness
Margin
Padding
Define layouts with XAML

 

 

Show:
© 2017 Microsoft