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

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

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

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

Private Properties

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

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

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

Adds two SizeByte values together and returns the result.

Ceiling ( SizeF value ) : SizeByte

Rounds a SizeF value up to the nearest SizeByte value.

Equals ( object obj ) : bool

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

FromBytes ( byte data ) : void

Inherited from ISerializableByteArray. Sets the current SizeByte structure from the byte array.

GetBytes ( ) : byte[]

Inherited from ISerializableByteArray. Gets the byte-array for the current SizeByte structure.

GetHashCode ( ) : int

Computes the hash code of the current SizeShort.

Round ( SizeF value ) : SizeByte

Rounds a SizeF value to the nearest SizeByte value.

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

Creates a new instance of SizeByte from a specified Point.

SizeByte ( byte width, byte height ) : Evbpc.Framework.Utilities.Serialization

Creates a new instance of SizeByte from the specified values.

Subtract ( SizeByte sz1, SizeByte sz2 ) : SizeByte

Subtracs two SizeByte values and returns the result.

ToString ( ) : string

Returns a string representing the current SizeByte object.

Truncate ( SizeF value ) : SizeByte

Rounds a SizeF value down to the nearest SizeByte value.

operator ( ) : SizeByte

Adds two SizeByte structures together.

operator ( ) : bool

Determines if two SizeByte structures are equal.

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

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

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

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

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

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

Determines if the current SizeByte 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 SizeByte structure from the byte array.
public FromBytes ( byte data ) : void
data byte
Результат void

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

Inherited from ISerializableByteArray. Gets the byte-array for the current SizeByte structure.
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 SizeByte value.
public static Round ( SizeF value ) : SizeByte
value SizeF The value to round.
Результат SizeByte

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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