SKSize Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stores an ordered pair of floating-point numbers describing the width and height of a rectangle.
public struct SKSize
public struct SKSize : IEquatable<SkiaSharp.SKSize>
- Inheritance
-
SKSize
- Implements
Constructors
SKSize(Single, Single) |
Creates a new size with a given width and height. |
SKSize(SKPoint) |
Creates a new size from the offset of a point. |
Fields
Empty |
Represents a new instance of the SKSize class with member data left uninitialized. |
Properties
Height |
Gets or sets the vertical component of this SKSize structure. |
IsEmpty |
Gets a value that indicates whether this SKSize structure has zero width and height. |
Width |
Gets or sets the horizontal component of this SKSize structure. |
Methods
Add(SKSize, SKSize) |
Adds the width and height of one SKSize structure to the width and height of another SKSize structure. |
Equals(Object) |
Tests to see whether the specified object is a SKSize structure with the same dimensions as this SKSize structure. |
Equals(SKSize) |
Tests to see whether the specified object is a SKSize structure with the same dimensions as this SKSize structure. |
GetHashCode() |
Returns a hash code for this SKSize structure. |
Subtract(SKSize, SKSize) |
Subtracts the width and height of one SKSize structure from the width and height of another SKSize structure. |
ToPoint() | |
ToSizeI() | |
ToString() |
Converts this SKSize to a human readable string. |
Operators
Addition(SKSize, SKSize) |
Adds the width and height of one SKSize structure to the width and height of another SKSize structure. |
Equality(SKSize, SKSize) |
Tests whether two SKSize structures are equal. |
Explicit(SKSize to SKPoint) |
Converts the specified SKSize structure to a SKPoint structure. |
Implicit(SKSizeI to SKSize) |
Converts the specified SKSizeI structure to a SKSize structure. |
Inequality(SKSize, SKSize) |
Tests whether two SKSize structures are different. |
Subtraction(SKSize, SKSize) |
Subtracts the width and height of one SKSize structure from the width and height of another SKSize structure. |
Applies to
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기