Click or drag to resize
Pdf Library for .NET

SizeF Structure

Represents a 2D size (width and height) in single-precision floating-point, used throughout the SelectPdf public API.
Inheritance Hierarchy
SystemObject
  SystemValueType
    SelectPdf.Universal.DrawingSizeF

Namespace: SelectPdf.Universal.Drawing
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public struct SizeF : IEquatable<SizeF>

The SizeF type exposes the following members.

Constructors
 NameDescription
Public methodSizeFInitializes a new SizeF with the specified dimensions.
Top
Properties
 NameDescription
Public propertyHeightThe height.
Public propertyIsEmptyTrue if both Width and Height are zero.
Public propertyWidthThe width.
Top
Methods
 NameDescription
Public methodEquals(Object)Indicates whether this size and the specified object have the same value.
(Overrides ValueTypeEquals(Object))
Public methodEquals(SizeF)Indicates whether this size and the specified SizeF have the same width and height.
Public methodGetHashCodeReturns the hash code for this size.
(Overrides ValueTypeGetHashCode)
Public methodToStringReturns a string representation of this SizeF (its Width and Height).
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(SizeF, SizeF)Returns true if the two sizes have identical width and height.
Public operatorStatic memberInequality(SizeF, SizeF)Returns true if the two sizes differ in width or height.
Top
Fields
 NameDescription
Public fieldStatic memberEmptyRepresents a SizeF with width and height set to zero.
Top
Example
SelectPdf.Universal.Drawing.SizeF size =
    new SelectPdf.Universal.Drawing.SizeF(210f, 297f);
float w = size.Width;
bool empty = size.IsEmpty;
See Also