Click or drag to resize

Size Structure

A structure used to describe the size of an object.
Inheritance Hierarchy
SystemObject
  SystemValueType
    SautinSoft.Document.DrawingSize

Namespace: SautinSoft.Document.Drawing
Assembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.3.11
Syntax
public struct Size : IEquatable<Size>

The Size type exposes the following members.

Constructors
 NameDescription
Public methodCode exampleSize(Double, Double) Initializes a new instance of the Size struct.
Public methodSize(Double, Double, LengthUnit) Initializes a new instance of the Size struct.
Top
Properties
 NameDescription
Public propertyHeight Gets the height in points.
Public propertyWidth Gets the width in points.
Top
Methods
 NameDescription
Public methodEquals(Object) Determines whether the specified Object is equal to this Size instance.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Size) Determines whether the other Size is equal to this Size instance.
Public methodGetHashCode Returns a hash code for this Size instance.
(Overrides ValueTypeGetHashCode)
Public methodToString Returns the value as string, in such format: W:65.754; H:120.33233.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(Size, Size) Determines whether first and second Sizes are equal.
Public operatorStatic memberInequality(Size, Size) Determines whether first and second Sizes are not equal.
Top
See Also