C# Class Svg.SvgUnit

Afficher le fichier Open project: vvvv/SVG Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty SvgUnit
None SvgUnit

Méthodes publiques

Méthode Description
Equals ( SvgUnit other ) : bool
Equals ( object obj ) : bool
GetDevicePoint ( SvgUnit x, SvgUnit y, ISvgRenderer renderer, SvgElement owner ) : PointF
GetDevicePointOffset ( SvgUnit x, SvgUnit y, ISvgRenderer renderer, SvgElement owner ) : PointF
GetDeviceSize ( SvgUnit width, SvgUnit height, ISvgRenderer renderer, SvgElement owner ) : SizeF
GetHashCode ( ) : int
SvgUnit ( SvgUnitType type, float value ) : System

Initializes a new instance of the SvgUnit struct.

SvgUnit ( float value ) : System

Initializes a new instance of the SvgUnit struct.

ToDeviceValue ( ISvgRenderer renderer, UnitRenderingType renderType, SvgElement owner ) : float

Converts the current unit to one that can be used at render time.

ToPercentage ( ) : SvgUnit

Converts the current unit to a percentage, if applicable.

ToString ( ) : string
operator ( ) : bool

Private Methods

Méthode Description
GetFont ( ISvgRenderer renderer, SvgElement owner ) : IFontDefn

Method Details

Equals() public méthode

public Equals ( SvgUnit other ) : bool
other SvgUnit
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetDevicePoint() public static méthode

public static GetDevicePoint ( SvgUnit x, SvgUnit y, ISvgRenderer renderer, SvgElement owner ) : PointF
x SvgUnit
y SvgUnit
renderer ISvgRenderer
owner SvgElement
Résultat System.Drawing.PointF

GetDevicePointOffset() public static méthode

public static GetDevicePointOffset ( SvgUnit x, SvgUnit y, ISvgRenderer renderer, SvgElement owner ) : PointF
x SvgUnit
y SvgUnit
renderer ISvgRenderer
owner SvgElement
Résultat System.Drawing.PointF

GetDeviceSize() public static méthode

public static GetDeviceSize ( SvgUnit width, SvgUnit height, ISvgRenderer renderer, SvgElement owner ) : SizeF
width SvgUnit
height SvgUnit
renderer ISvgRenderer
owner SvgElement
Résultat System.Drawing.SizeF

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

SvgUnit() public méthode

Initializes a new instance of the SvgUnit struct.
public SvgUnit ( SvgUnitType type, float value ) : System
type SvgUnitType The type.
value float The value.
Résultat System

SvgUnit() public méthode

Initializes a new instance of the SvgUnit struct.
public SvgUnit ( float value ) : System
value float The value.
Résultat System

ToDeviceValue() public méthode

Converts the current unit to one that can be used at render time.
public ToDeviceValue ( ISvgRenderer renderer, UnitRenderingType renderType, SvgElement owner ) : float
renderer ISvgRenderer
renderType UnitRenderingType
owner SvgElement
Résultat float

ToPercentage() public méthode

Converts the current unit to a percentage, if applicable.
public ToPercentage ( ) : SvgUnit
Résultat SvgUnit

ToString() public méthode

public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

Empty public_oe static_oe property

Gets and empty SvgUnit.
public static SvgUnit,Svg Empty
Résultat SvgUnit

None public_oe static_oe property

Gets an SvgUnit with a value of none.
public static SvgUnit,Svg None
Résultat SvgUnit