इसके माध्यम से साझा किया गया


Compositor.CreateRectangleClip Method

Definition

Overloads

CreateRectangleClip()

Creates an instance of RectangleClip with default values.

CreateRectangleClip(Single, Single, Single, Single)

Creates an instance of RectangleClip with the specified edge values.

CreateRectangleClip(Single, Single, Single, Single, Vector2, Vector2, Vector2, Vector2)

Creates an instance of RectangleClip with the specified edge and corner radius values.

CreateRectangleClip()

Creates an instance of RectangleClip with default values.

public:
 virtual RectangleClip ^ CreateRectangleClip() = CreateRectangleClip;
/// [Windows.Foundation.Metadata.Overload("CreateRectangleClip")]
RectangleClip CreateRectangleClip();
[Windows.Foundation.Metadata.Overload("CreateRectangleClip")]
public RectangleClip CreateRectangleClip();
function createRectangleClip()
Public Function CreateRectangleClip () As RectangleClip

Returns

The created instance of RectangleClip.

Attributes

Windows requirements

Device family
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v12.0)

Applies to

CreateRectangleClip(Single, Single, Single, Single)

Creates an instance of RectangleClip with the specified edge values.

public:
 virtual RectangleClip ^ CreateRectangleClip(float left, float top, float right, float bottom) = CreateRectangleClip;
/// [Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSides")]
RectangleClip CreateRectangleClip(float const& left, float const& top, float const& right, float const& bottom);
[Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSides")]
public RectangleClip CreateRectangleClip(float left, float top, float right, float bottom);
function createRectangleClip(left, top, right, bottom)
Public Function CreateRectangleClip (left As Single, top As Single, right As Single, bottom As Single) As RectangleClip

Parameters

left
Single

float

The offset of the left edge from the left of the visual, in pixels.

top
Single

float

The offset of the top edge from the top of the visual, in pixels.

right
Single

float

The offset of the right edge from the right of the visual, in pixels.

bottom
Single

float

The offset of the bottom edge from the bottom of the visual, in pixels.

Returns

The created instance of RectangleClip.

Attributes

Windows requirements

Device family
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v12.0)

Applies to

CreateRectangleClip(Single, Single, Single, Single, Vector2, Vector2, Vector2, Vector2)

Creates an instance of RectangleClip with the specified edge and corner radius values.

public:
 virtual RectangleClip ^ CreateRectangleClip(float left, float top, float right, float bottom, float2 topLeftRadius, float2 topRightRadius, float2 bottomRightRadius, float2 bottomLeftRadius) = CreateRectangleClip;
/// [Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSidesAndRadius")]
RectangleClip CreateRectangleClip(float const& left, float const& top, float const& right, float const& bottom, float2 const& topLeftRadius, float2 const& topRightRadius, float2 const& bottomRightRadius, float2 const& bottomLeftRadius);
[Windows.Foundation.Metadata.Overload("CreateRectangleClipWithSidesAndRadius")]
public RectangleClip CreateRectangleClip(float left, float top, float right, float bottom, Vector2 topLeftRadius, Vector2 topRightRadius, Vector2 bottomRightRadius, Vector2 bottomLeftRadius);
function createRectangleClip(left, top, right, bottom, topLeftRadius, topRightRadius, bottomRightRadius, bottomLeftRadius)
Public Function CreateRectangleClip (left As Single, top As Single, right As Single, bottom As Single, topLeftRadius As Vector2, topRightRadius As Vector2, bottomRightRadius As Vector2, bottomLeftRadius As Vector2) As RectangleClip

Parameters

left
Single

float

The offset of the left edge from the left of the visual, in pixels.

top
Single

float

The offset of the top edge from the top of the visual, in pixels.

right
Single

float

The offset of the right edge from the right of the visual, in pixels.

bottom
Single

float

The offset of the bottom edge from the bottom of the visual, in pixels.

topLeftRadius
Vector2 Vector2

float2

The the amount by which the top left corner of the rectangle is rounded, in pixels.

topRightRadius
Vector2 Vector2

float2

The the amount by which the top right corner of the rectangle is rounded, in pixels.

bottomRightRadius
Vector2 Vector2

float2

The the amount by which the bottom right corner of the rectangle is rounded, in pixels.

bottomLeftRadius
Vector2 Vector2

float2

The the amount by which the bottom left corner of the rectangle is rounded, in pixels.

Returns

The created instance of RectangleClip.

Attributes

Windows requirements

Device family
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v12.0)

Applies to