Search Results for

    Show / Hide Table of Contents

    Class Envelope

    Specifies an envelope (a rectangle) using two corner points.

    Inheritance
    System.Object
    Envelope
    Implements
    IEnvelope
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: OSGeo.MapGuide.ObjectModels.Common
    Assembly: OSGeo.MapGuide.ObjectModels.dll
    Syntax
    [Serializable]
    public class Envelope : IEnvelope, INotifyPropertyChanged

    Constructors

    | Improve this Doc View Source

    Envelope(Double, Double, Double, Double)

    Constructor

    Declaration
    public Envelope(double minx, double miny, double maxx, double maxy)
    Parameters
    Type Name Description
    System.Double minx
    System.Double miny
    System.Double maxx
    System.Double maxy

    Properties

    | Improve this Doc View Source

    LowerLeftCoordinate

    Specifies the lower left corner of the envelope.

    Declaration
    public EnvelopeLowerLeftCoordinate LowerLeftCoordinate { get; set; }
    Property Value
    Type Description
    EnvelopeLowerLeftCoordinate
    | Improve this Doc View Source

    MaxX

    Gets or sets the upper X value

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

    MaxY

    Gets or sets the upper Y value

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

    MinX

    Gets or sets the lower X value

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

    MinY

    Gets or set the lower Y value

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

    UpperRightCoordinate

    Specifies the upper right corner of the envelope.

    Declaration
    public EnvelopeUpperRightCoordinate UpperRightCoordinate { get; set; }
    Property Value
    Type Description
    EnvelopeUpperRightCoordinate

    Methods

    | Improve this Doc View Source

    Clone()

    Create a clone of this Envelope object

    Declaration
    public virtual Envelope Clone()
    Returns
    Type Description
    Envelope
    | Improve this Doc View Source

    Deserialize(String)

    Declaration
    public static Envelope Deserialize(string xml)
    Parameters
    Type Name Description
    System.String xml
    Returns
    Type Description
    Envelope
    | Improve this Doc View Source

    Deserialize(String, out Envelope)

    Declaration
    public static bool Deserialize(string xml, out Envelope obj)
    Parameters
    Type Name Description
    System.String xml
    Envelope obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Deserialize(String, out Envelope, out Exception)

    Deserializes workflow markup into an Envelope object

    Declaration
    public static bool Deserialize(string xml, out Envelope obj, out Exception exception)
    Parameters
    Type Name Description
    System.String xml

    string workflow markup to deserialize

    Envelope obj

    Output Envelope object

    System.Exception exception

    output Exception value if deserialize failed

    Returns
    Type Description
    System.Boolean

    true if this XmlSerializer can deserialize the object; otherwise, false

    | Improve this Doc View Source

    LoadFromFile(String)

    Declaration
    public static Envelope LoadFromFile(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    Returns
    Type Description
    Envelope
    | Improve this Doc View Source

    LoadFromFile(String, out Envelope)

    Declaration
    public static bool LoadFromFile(string fileName, out Envelope obj)
    Parameters
    Type Name Description
    System.String fileName
    Envelope obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LoadFromFile(String, out Envelope, out Exception)

    Deserializes xml markup from file into an Envelope object

    Declaration
    public static bool LoadFromFile(string fileName, out Envelope obj, out Exception exception)
    Parameters
    Type Name Description
    System.String fileName

    string xml file to load and deserialize

    Envelope obj

    Output Envelope object

    System.Exception exception

    output Exception value if deserialize failed

    Returns
    Type Description
    System.Boolean

    true if this XmlSerializer can deserialize the object; otherwise, false

    | Improve this Doc View Source

    OnPropertyChanged(String)

    Declaration
    public virtual void OnPropertyChanged(string info)
    Parameters
    Type Name Description
    System.String info
    | Improve this Doc View Source

    SaveToFile(String)

    Declaration
    public virtual void SaveToFile(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    | Improve this Doc View Source

    SaveToFile(String, out Exception)

    Serializes current Envelope object into file

    Declaration
    public virtual bool SaveToFile(string fileName, out Exception exception)
    Parameters
    Type Name Description
    System.String fileName

    full path of outupt xml file

    System.Exception exception

    output Exception value if failed

    Returns
    Type Description
    System.Boolean

    true if can serialize and save into file; otherwise, false

    | Improve this Doc View Source

    Serialize()

    Serializes current Envelope object into an XML document

    Declaration
    public virtual string Serialize()
    Returns
    Type Description
    System.String

    string XML value

    Events

    | Improve this Doc View Source

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    IEnvelope
    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    EnvelopeExtensions.IsEmpty(IEnvelope)
    EnvelopeExtensions.Center(IEnvelope)
    EnvelopeExtensions.Clone(IEnvelope)
    EnvelopeExtensions.ExpandToInclude(IEnvelope, IEnvelope)
    EnvelopeExtensions.Contains(IEnvelope, Double, Double)
    EnvelopeExtensions.Intersects(IEnvelope, IEnvelope)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng