C# Class Svg.SvgUnit

Mostra file Open project: vvvv/SVG Class Usage Examples

Public Properties

Property Type Description
Empty SvgUnit
None SvgUnit

Public Methods

Method 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

Method Description
GetFont ( ISvgRenderer renderer, SvgElement owner ) : IFontDefn

Method Details

Equals() public method

public Equals ( SvgUnit other ) : bool
other SvgUnit
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetDevicePoint() public static method

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

GetDevicePointOffset() public static method

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

GetDeviceSize() public static method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

SvgUnit() public method

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

SvgUnit() public method

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

ToDeviceValue() public method

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
return float

ToPercentage() public method

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

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

Gets and empty SvgUnit.
public static SvgUnit,Svg Empty
return SvgUnit

None public_oe static_oe property

Gets an SvgUnit with a value of none.
public static SvgUnit,Svg None
return SvgUnit