Struct Location
Defines a location within a text file. Objects of this types are imutable and can't be changed once they have been created.
Namespace: ABB.Robotics.Controllers.RapidDomain
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public struct Location
Constructors
Location(Int32, Int32)
Creates a new location object with row and column.
Declaration
public Location(int row, int column)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | row | Sets the row of the location. |
System.Int32 | column | Sets the column of the location. |
Properties
Column
Gets the column.
Declaration
public readonly int Column { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Empty
Empty instance for this type.
Declaration
public static readonly Location Empty { get; }
Property Value
Type | Description |
---|---|
Location |
Row
Gets the row.
Declaration
public readonly int Row { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(Location)
Checks if obj is equal to this object.
Declaration
public bool Equals(Location obj)
Parameters
Type | Name | Description |
---|---|---|
Location | obj | Object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if equal. |
Equals(Object)
Checks if obj is equal to this object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if equal. |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Gets the hashcode for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code for this object. |
Overrides
System.ValueType.GetHashCode()