Show / Hide Table of Contents

    Class Offset

    Inheritance
    System.Object
    Offset
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Mapsui.Styles
    Assembly: Mapsui.dll
    Syntax
    public class Offset

    Constructors

    | Improve this Doc View Source

    Offset()

    Offset of images from the center of the image. If IsRelative, than the offset is between -0.5 and +0.5.

    Declaration
    public Offset()
    | Improve this Doc View Source

    Offset(Offset, Boolean)

    Declaration
    public Offset(Offset offset, bool isRelative = false)
    Parameters
    Type Name Description
    Offset offset
    System.Boolean isRelative
    | Improve this Doc View Source

    Offset(Double, Double, Boolean)

    Declaration
    public Offset(double x, double y, bool isRelative = false)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    System.Boolean isRelative

    Properties

    | Improve this Doc View Source

    IsRelative

    Declaration
    public bool IsRelative { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    X

    Declaration
    public double X { get; set; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Y

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    | Improve this Doc View Source

    Equals(Offset)

    Declaration
    public bool Equals(Offset offset)
    Parameters
    Type Name Description
    Offset offset
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

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

    GetHashCode()

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

    Operators

    | Improve this Doc View Source

    Equality(Offset, Offset)

    Declaration
    public static bool operator ==(Offset offset1, Offset offset2)
    Parameters
    Type Name Description
    Offset offset1
    Offset offset2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(Offset, Offset)

    Declaration
    public static bool operator !=(Offset offset1, Offset offset2)
    Parameters
    Type Name Description
    Offset offset1
    Offset offset2
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX