Search Results for

    Show / Hide Table of Contents

    Struct SvgViewBox

    It is often desirable to specify that a given set of graphics stretch to fit a particular container element. The viewBox attribute provides this capability.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Svg
    Assembly: Svg.dll
    Syntax
    [TypeConverter(typeof(SvgViewBoxConverter))]
    public struct SvgViewBox

    Constructors

    | Improve this Doc View Source

    SvgViewBox(Single, Single, Single, Single)

    Initializes a new instance of the SvgViewBox struct.

    Declaration
    public SvgViewBox(float minX, float minY, float width, float height)
    Parameters
    Type Name Description
    Single minX

    The min X.

    Single minY

    The min Y.

    Single width

    The width.

    Single height

    The height.

    Fields

    | Improve this Doc View Source

    Empty

    Declaration
    public static readonly SvgViewBox Empty
    Field Value
    Type Description
    SvgViewBox

    Properties

    | Improve this Doc View Source

    Height

    Gets or sets the height of the viewport.

    Declaration
    public float Height { readonly get; set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    MinX

    Gets or sets the position where the viewport starts horizontally.

    Declaration
    public float MinX { readonly get; set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    MinY

    Gets or sets the position where the viewport starts vertically.

    Declaration
    public float MinY { readonly get; set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    Width

    Gets or sets the width of the viewport.

    Declaration
    public float Width { readonly get; set; }
    Property Value
    Type Description
    Single

    Methods

    | Improve this Doc View Source

    AddViewBoxTransform(SvgAspectRatio, ISvgRenderer, SvgFragment)

    Declaration
    public void AddViewBoxTransform(SvgAspectRatio aspectRatio, ISvgRenderer renderer, SvgFragment frag)
    Parameters
    Type Name Description
    SvgAspectRatio aspectRatio
    ISvgRenderer renderer
    SvgFragment frag
    | Improve this Doc View Source

    Equals(SvgViewBox)

    Declaration
    public bool Equals(SvgViewBox other)
    Parameters
    Type Name Description
    SvgViewBox other
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(SvgViewBox, SvgViewBox)

    Declaration
    public static bool operator ==(SvgViewBox lhs, SvgViewBox rhs)
    Parameters
    Type Name Description
    SvgViewBox lhs
    SvgViewBox rhs
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Implicit(SvgViewBox to RectangleF)

    Performs an implicit conversion from SvgViewBox to RectangleF.

    Declaration
    public static implicit operator RectangleF(SvgViewBox value)
    Parameters
    Type Name Description
    SvgViewBox value

    The value.

    Returns
    Type Description
    RectangleF

    The result of the conversion.

    | Improve this Doc View Source

    Implicit(RectangleF to SvgViewBox)

    Performs an implicit conversion from RectangleF to SvgViewBox.

    Declaration
    public static implicit operator SvgViewBox(RectangleF value)
    Parameters
    Type Name Description
    RectangleF value

    The value.

    Returns
    Type Description
    SvgViewBox

    The result of the conversion.

    | Improve this Doc View Source

    Inequality(SvgViewBox, SvgViewBox)

    Declaration
    public static bool operator !=(SvgViewBox lhs, SvgViewBox rhs)
    Parameters
    Type Name Description
    SvgViewBox lhs
    SvgViewBox rhs
    Returns
    Type Description
    Boolean
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX