Back to Devexpress

DrawingObject.Type Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-drawingobject.md

latest4.5 KB
Original Source

DrawingObject.Type Property

Returns the shape’s type.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
ShapeType Type { get; }
vb
ReadOnly Property Type As ShapeType

Property Value

TypeDescription
ShapeType

An enumeration member that specifies the shape’s type.

|

Available values:

NameDescription
Picture

A picture.

| | Shape |

A shape.

| | Connector |

A connector between two shapes.

| | Group |

A shape group.

| | Canvas |

A drawing canvas.

| | OleObject |

An OLE object.

| | ActiveXControl |

An ActiveX control.

| | Chart |

A chart.

| | Watermark |

A watermark.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Type property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Shapes.cs#L101

csharp
// Rotate a text box and resize a floating picture.
   if (s.Type == ShapeType.Picture)
   {

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ShapesActions.cs#L108

csharp
// Rotate a text box and resize a floating picture.
   if (s.Type == ShapeType.Picture)
   {

word-document-api-examples/CS/CodeExamples/ShapesActions.cs#L172

csharp
// Rotate pictures.
if (s.Type == ShapeType.Picture)
{

office-file-api-ai-implementation/CS/Controllers/AccessibilityController.cs#L39

csharp
{
    if (shape.Type == DevExpress.XtraRichEdit.API.Native.ShapeType.Picture && string.IsNullOrEmpty(shape.AltText))
    {

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Shapes.vb#L89

vb
' Rotate a text box and resize a floating picture.
If s.Type = DevExpress.XtraRichEdit.API.Native.ShapeType.Picture Then
    s.RotationAngle = 45

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/ShapesActions.vb#L96

vb
' Rotate a text box and resize a floating picture.
   If s.Type = ShapeType.Picture Then
       s.RotationAngle = 45

word-document-api-examples/VB/CodeExamples/ShapesActions.vb#L144

vb
' Rotate pictures.
If s.Type = DevExpress.XtraRichEdit.API.Native.ShapeType.Picture Then
    ' Resize text boxes.

See Also

DrawingObject Interface

DrawingObject Members

DevExpress.XtraRichEdit.API.Native Namespace