Show / Hide Table of Contents

Class Size

Inheritance
System.Object
Size
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:GoogleMaps
Assembly:GoogleMaps.dll
Syntax
public class Size : IScriptDescriptorData

Constructors

Size()

Initializes a new instance of the Size struct.

Declaration
public Size()

Size(Int32, Int32)

Initializes a new instance of the Size struct.

Declaration
public Size(int width, int height)
Parameters
Type Name Description
System.Int32 width

The width.

System.Int32 height

The height.

Properties

Height

Gets or sets the height.

Declaration
public int Height { get; set; }
Property Value
Type Description
System.Int32

The height.

Width

Gets or sets the width.

Declaration
public int Width { get; set; }
Property Value
Type Description
System.Int32

The width.

Methods

Equals(Size)

Equalses the specified size.

Declaration
public bool Equals(Size size)
Parameters
Type Name Description
Size size

The size.

Returns
Type Description
System.Boolean

Equals(Object)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

Another object to compare to.

Returns
Type Description
System.Boolean

true if obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
System.Object.Equals(System.Object)

FromScriptData(Object)

Retrieves an instance from script data.

Declaration
public static Size FromScriptData(object scriptObject)
Parameters
Type Name Description
System.Object scriptObject

The script object.

Returns
Type Description
Size

GetHashCode()

Returns the hash code for this instance.

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

A 32-bit signed integer that is the hash code for this instance.

Overrides
System.Object.GetHashCode()

Parse(String)

Parses the specified value.

Declaration
public static Size Parse(string value)
Parameters
Type Name Description
System.String value

The value.

Returns
Type Description
Size

ToScriptData()

Returns the instance as a script data.

Declaration
public IDictionary<string, object> ToScriptData()
Returns
Type Description
System.Collections.Generic.IDictionary<System.String, System.Object>
Implements
IScriptDescriptorData.ToScriptData()

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String containing a fully qualified type name.

Overrides
System.Object.ToString()

Operators

Equality(Size, Size)

Implements the operator ==.

Declaration
public static bool operator ==(Size a, Size b)
Parameters
Type Name Description
Size a

A.

Size b

The b.

Returns
Type Description
System.Boolean

The result of the operator.

Implicit(String to Size)

Performs an implicit conversion from System.String to Size.

Declaration
public static implicit operator Size(string value)
Parameters
Type Name Description
System.String value

The value.

Returns
Type Description
Size

The result of the conversion.

Inequality(Size, Size)

Implements the operator !=.

Declaration
public static bool operator !=(Size a, Size b)
Parameters
Type Name Description
Size a

A.

Size b

The b.

Returns
Type Description
System.Boolean

The result of the operator.

Back to top Copyright © 2017 GoogleMapControl
Generated by DocFX