Class OrientedValue
Represent the Oriented value
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
public class OrientedValue
Constructors
OrientedValue()
Declaration
public OrientedValue()
Methods
GetOrientedBottomValue(Rect, Orientation)
Returns the oriented value. For horizontal orientation, it will return Bottom and for vertical it will return Right.
Declaration
public static double GetOrientedBottomValue(Rect rect, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect | System.Windows.Rect Specifies height and width of rectangle |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the Orientation value for bottom value |
Returns
Type | Description |
---|---|
System.Double | returns the oriented bottom value |
GetOrientedHeightValue(Rect, Orientation)
Returns the oriented value. For horizontal orientation, it will return Height and for vertical it will return Width.
Declaration
public static double GetOrientedHeightValue(Rect rect, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect | System.Windows.Rect Specifies height and width of rectangle |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the height for Orientation value |
Returns
Type | Description |
---|---|
System.Double | returns the orientated value of Height |
GetOrientedHeightValue(Size, Orientation)
Returns the oriented value. For horizontal orientation, it will return Height and for vertical it will return Width.
Declaration
public static double GetOrientedHeightValue(Size size, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | size | System.Windows.Size of an object. |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the height for Orientation value |
Returns
Type | Description |
---|---|
System.Double | returns the orientated value of Height |
GetOrientedLeftValue(Rect, Orientation)
Returns the oriented value. For horizontal orientation, it will return Left and for vertical it will return Top.
Declaration
public static double GetOrientedLeftValue(Rect rect, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect | System.Windows.Rect Specifies height and width of rectangle |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the Orientation value for left value |
Returns
Type | Description |
---|---|
System.Double | returns the oriented left value |
GetOrientedRightValue(Rect, Orientation)
Returns the oriented value. For horizontal orientation, it will return Right and for vertical it will return Bottom.
Declaration
public static double GetOrientedRightValue(Rect rect, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect | System.Windows.Rect Specifies height and width of rectangle |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the width for Orientation value |
Returns
Type | Description |
---|---|
System.Double | returns the oriented right value |
GetOrientedSize(Double, Double, Orientation)
Returns the oriented value. For vertical orientaion, height and width will be interchanged.
Declaration
public static Size GetOrientedSize(double width, double height, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | System.double Get width for Orientation value |
System.Double | height | System.double Get height for Orientation value |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Specifies the Orientation value |
Returns
Type | Description |
---|---|
System.Windows.Size | returns the size of height and width |
GetOrientedTopValue(Rect, Orientation)
Returns the oriented value. For horizontal orientation, it will return Top and for vertical it will return Left.
Declaration
public static double GetOrientedTopValue(Rect rect, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect | System.Windows.Rect Specifies height and width of rectangle |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the Orientation value for top value |
Returns
Type | Description |
---|---|
System.Double | returns the oriented top value |
GetOrientedWidthValue(Rect, Orientation)
Returns the oriented value. For horizontal orientation, it will return Width and for vertical it will return Height.
Declaration
public static double GetOrientedWidthValue(Rect rect, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect | System.Windows.Rect Specifies height and width of rectangle |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the Width for Orientation value |
Returns
Type | Description |
---|---|
System.Double | returns the orientated value of Width |
GetOrientedWidthValue(Size, Orientation)
Returns the oriented value. For horizontal orientation, it will return Width and for vertical it will return Height.
Declaration
public static double GetOrientedWidthValue(Size size, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | size | System.Windows.Size of an object. |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the width for Orientation value |
Returns
Type | Description |
---|---|
System.Double | returns the orientated value of Width |
GetOrientedXValue(Point, Orientation)
Returns oriented x value. For horizontal orientation, it will return x and for vertical it will return y.
Declaration
public static double GetOrientedXValue(Point point, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | point | System.Windows.Point |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the Orientation value for X value |
Returns
Type | Description |
---|---|
System.Double | returns the oriented X value |
GetOrientedYValue(Point, Orientation)
Returns the oriented value. For horizontal orientation, it will return y and for vertical it will return x.
Declaration
public static double GetOrientedYValue(Point point, Orientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | point | System.Windows.Point |
System.Windows.Controls.Orientation | orientation | System.Windows.Controls.Orientation Get the Orientation value for Y value |
Returns
Type | Description |
---|---|
System.Double | return the oriented Y value |