Search Results for

    Show / Hide Table of Contents

    Class RelativeOffset

    Offset relative to the size of the item to which it applies. The unit of measure is the width or height of an image. A relative offset of X = 0, and Y = 0 will be centered. An offset of (0.5, 0.5) the symbol will be moved half the width of the image to the right and half the height of the image to the top. So the bottom left point of the image will be on the location.

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

    Constructors

    | Edit this page View Source

    RelativeOffset()

    Declaration
    public RelativeOffset()
    | Edit this page View Source

    RelativeOffset(MPoint)

    Declaration
    public RelativeOffset(MPoint point)
    Parameters
    Type Name Description
    MPoint point
    | Edit this page View Source

    RelativeOffset(RelativeOffset)

    Declaration
    public RelativeOffset(RelativeOffset offset)
    Parameters
    Type Name Description
    RelativeOffset offset
    | Edit this page View Source

    RelativeOffset(double, double)

    Offset relative to the size of the item to which it applies. The unit of measure is the width or height of an image. A relative offset of X = 0, and Y = 0 will be centered. An offset of (0.5, 0.5) the symbol will be moved half the width of the image to the right and half the height of the image to the top. So the bottom left point of the image will be on the location.

    Declaration
    public RelativeOffset(double x = 0, double y = 0)
    Parameters
    Type Name Description
    double x
    double y

    Properties

    | Edit this page View Source

    X

    Declaration
    public double X { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Y

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

    Methods

    | Edit this page View Source

    Equals(RelativeOffset?)

    Declaration
    public bool Equals(RelativeOffset? offset)
    Parameters
    Type Name Description
    RelativeOffset offset
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetAbsoluteOffset(double, double)

    Calculate the real offset respecting width and height

    Declaration
    public Offset GetAbsoluteOffset(double width, double height)
    Parameters
    Type Name Description
    double width

    Width of the symbol

    double height

    Height of the symbol

    Returns
    Type Description
    Offset

    Calculated offset

    | Edit this page View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToPoint()

    Declaration
    public MPoint ToPoint()
    Returns
    Type Description
    MPoint

    Operators

    | Edit this page View Source

    operator ==(RelativeOffset?, RelativeOffset?)

    Declaration
    public static bool operator ==(RelativeOffset? offset1, RelativeOffset? offset2)
    Parameters
    Type Name Description
    RelativeOffset offset1
    RelativeOffset offset2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(RelativeOffset?, RelativeOffset?)

    Declaration
    public static bool operator !=(RelativeOffset? offset1, RelativeOffset? offset2)
    Parameters
    Type Name Description
    RelativeOffset offset1
    RelativeOffset offset2
    Returns
    Type Description
    bool

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX