C# Класс Evbpc.Framework.Drawing.SizeShort

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Empty SizeShort

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Add ( SizeShort sz1, SizeShort sz2 ) : SizeShort

Adds two SizeShort values together and returns the result.

Ceiling ( SizeF value ) : SizeShort

Rounds a SizeF value up to the nearest SizeShort value.

Equals ( object obj ) : bool

Determines if the current SizeShort is equal to the specified object.

FromBytes ( byte data ) : void

Inherited from ISerializableByteArray. Sets the current SizeShort object from the byte array.

GetBytes ( ) : byte[]

Inherited from ISerializableByteArray. Gets the byte-array for the current SizeShort object.

GetHashCode ( ) : int

Computes the hash code of the current SizeShort.

Round ( SizeF value ) : SizeShort

Rounds a SizeF value to the nearest SizeShort value.

SizeShort ( Point pt ) : Evbpc.Framework.Utilities.Serialization

Creates a new instance of SizeShort from a specified Point.

SizeShort ( PointShort pt ) : Evbpc.Framework.Utilities.Serialization

Creates a new instance of SizeShort from a specified PointShort.

SizeShort ( short width, short height ) : Evbpc.Framework.Utilities.Serialization

Creates a new instance of SizeShort from the specified values.

Subtract ( SizeShort sz1, SizeShort sz2 ) : SizeShort

Subtracs two SizeShort values and returns the result.

ToString ( ) : string

Returns a string representing the current SizeShort object.

Truncate ( SizeF value ) : SizeShort

Rounds a SizeF value down to the nearest SizeShort value.

operator ( ) : SizeShort

Adds two SizeShort structures together.

operator ( ) : bool

Determines if two SizeShort structures are equal.

Описание методов

Add() публичный статический Метод

Adds two SizeShort values together and returns the result.
public static Add ( SizeShort sz1, SizeShort sz2 ) : SizeShort
sz1 SizeShort The first to add.
sz2 SizeShort The second to add.
Результат SizeShort

Ceiling() публичный статический Метод

Rounds a SizeF value up to the nearest SizeShort value.
public static Ceiling ( SizeF value ) : SizeShort
value SizeF The value to round.
Результат SizeShort

Equals() публичный Метод

Determines if the current SizeShort is equal to the specified object.
public Equals ( object obj ) : bool
obj object The object to compare the to.
Результат bool

FromBytes() публичный Метод

Inherited from ISerializableByteArray. Sets the current SizeShort object from the byte array.
public FromBytes ( byte data ) : void
data byte
Результат void

GetBytes() публичный Метод

Inherited from ISerializableByteArray. Gets the byte-array for the current SizeShort object.
public GetBytes ( ) : byte[]
Результат byte[]

GetHashCode() публичный Метод

Computes the hash code of the current SizeShort.
public GetHashCode ( ) : int
Результат int

Round() публичный статический Метод

Rounds a SizeF value to the nearest SizeShort value.
public static Round ( SizeF value ) : SizeShort
value SizeF The value to round.
Результат SizeShort

SizeShort() публичный Метод

Creates a new instance of SizeShort from a specified Point.
public SizeShort ( Point pt ) : Evbpc.Framework.Utilities.Serialization
pt Point The that should be used to create the .
Результат Evbpc.Framework.Utilities.Serialization

SizeShort() публичный Метод

Creates a new instance of SizeShort from a specified PointShort.
public SizeShort ( PointShort pt ) : Evbpc.Framework.Utilities.Serialization
pt PointShort The that should be used to create the .
Результат Evbpc.Framework.Utilities.Serialization

SizeShort() публичный Метод

Creates a new instance of SizeShort from the specified values.
public SizeShort ( short width, short height ) : Evbpc.Framework.Utilities.Serialization
width short The of the .
height short The of the .
Результат Evbpc.Framework.Utilities.Serialization

Subtract() публичный статический Метод

Subtracs two SizeShort values and returns the result.
public static Subtract ( SizeShort sz1, SizeShort sz2 ) : SizeShort
sz1 SizeShort The intial .
sz2 SizeShort The to subtract.
Результат SizeShort

ToString() публичный Метод

Returns a string representing the current SizeShort object.
public ToString ( ) : string
Результат string

Truncate() публичный статический Метод

Rounds a SizeF value down to the nearest SizeShort value.
public static Truncate ( SizeF value ) : SizeShort
value SizeF The value to round.
Результат SizeShort

operator() публичный статический Метод

Adds two SizeShort structures together.
public static operator ( ) : SizeShort
Результат SizeShort

operator() публичный статический Метод

Determines if two SizeShort structures are equal.
public static operator ( ) : bool
Результат bool

Описание свойств

Empty публичное статическое свойство

Returns an empty instance of a SizeShort.
public static SizeShort,Evbpc.Framework.Drawing Empty
Результат SizeShort