The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

Shape.IncrementRotation(Int32) Method

Increments the rotation angle of the drawing object by the specified number of degrees.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

void IncrementRotation(
    int degrees
)
Sub IncrementRotation(
    degrees As Integer
)
void IncrementRotation(
    int degrees
)
Sub IncrementRotation(
    degrees As Integer
)
void IncrementRotation(
    int degrees
)
Sub IncrementRotation(
    degrees As Integer
)

Parameters

Name Type Description
degrees Int32

An integer that specifies how the drawing object is to be rotated, in degrees. A positive value rotates the drawing object clockwise, a negative value rotates it counterclockwise.

Parameters

Name Type Description
degrees Int32

An integer that specifies how the drawing object is to be rotated, in degrees. A positive value rotates the drawing object clockwise, a negative value rotates it counterclockwise.

Parameters

Name Type Description
degrees Int32

An integer that specifies how the drawing object is to be rotated, in degrees. A positive value rotates the drawing object clockwise, a negative value rotates it counterclockwise.

Remarks

Use the Shape.Rotation property to set the rotation angle of the drawing object.

Examples

workbook.BeginUpdate()
Try
    Dim worksheet As Worksheet = workbook.Worksheets(0)
    ' Insert picture from the file.
    Dim pic As Picture = worksheet.Pictures.AddPicture("Pictures\x-docserver.png", worksheet.Cells("B5"))
    ' Specify rotation angle.
    pic.Rotation = 30
    ' Increase rotation angle.
    pic.IncrementRotation(15)
Finally
    workbook.EndUpdate()
End Try
See Also