Struct SizeToRowConvertor
Converts/Maps the size to rows. Converts, pixels to row and inches to rows.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.ValueType.ToString()
Namespace: Syncfusion.Windows.Grid.Olap
Assembly: Syncfusion.OlapGrid.WPF.dll
Syntax
public struct SizeToRowConvertor
Methods
Convert(Double, OlapGrid)
Converts the specified size in pixel.
Declaration
public static int Convert(double sizeInPixel, OlapGrid olapGrid)
Parameters
Type | Name | Description |
---|---|---|
System.Double | sizeInPixel | The size in pixel. |
OlapGrid | olapGrid | The OlapGrid. |
Returns
Type | Description |
---|---|
System.Int32 | The Rows. |
ConvertFromInvariantInchString(String, OlapGrid)
Converts from invariant inch string.
Declaration
public static int ConvertFromInvariantInchString(string sizeInInch, OlapGrid olapGrid)
Parameters
Type | Name | Description |
---|---|---|
System.String | sizeInInch | The size in inch. eg., 2 |
OlapGrid | olapGrid | The OlapGrid. |
Returns
Type |
---|
System.Int32 |
ConvertFromInvariantString(String, OlapGrid)
Converts from invariant string.
Declaration
public static int ConvertFromInvariantString(string sizeInPixel, OlapGrid olapGrid)
Parameters
Type | Name | Description |
---|---|---|
System.String | sizeInPixel | The size in pixel. eg., 200 |
OlapGrid | olapGrid | The OlapGrid. |
Returns
Type | Description |
---|---|
System.Int32 | The Rows. |
Equals(Object)
checks whether the objects refer to the same type
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | object |
Returns
Type |
---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
This method is used to get the hash code value.
Declaration
public override int GetHashCode()
Returns
Type |
---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
Operators
Equality(SizeToRowConvertor, SizeToRowConvertor)
Overrides the method to compare the object type
Declaration
public static bool operator ==(SizeToRowConvertor size1, SizeToRowConvertor size2)
Parameters
Type | Name | Description |
---|---|---|
SizeToRowConvertor | size1 | first object |
SizeToRowConvertor | size2 | second object |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if size1 is equal to size2, false otherwise |
Inequality(SizeToRowConvertor, SizeToRowConvertor)
Overrides the method to compare the object type
Declaration
public static bool operator !=(SizeToRowConvertor size1, SizeToRowConvertor size2)
Parameters
Type | Name | Description |
---|---|---|
SizeToRowConvertor | size1 | first object |
SizeToRowConvertor | size2 | second object |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if size1 is not equal to size2, false otherwise |