officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-drawingobject.md
Returns the shape’s type.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
ShapeType Type { get; }
ReadOnly Property Type As ShapeType
| Type | Description |
|---|---|
| ShapeType |
An enumeration member that specifies the shape’s type.
|
Available values:
| Name | Description |
|---|---|
| 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
// Rotate a text box and resize a floating picture.
if (s.Type == ShapeType.Picture)
{
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ShapesActions.cs#L108
// Rotate a text box and resize a floating picture.
if (s.Type == ShapeType.Picture)
{
word-document-api-examples/CS/CodeExamples/ShapesActions.cs#L172
// Rotate pictures.
if (s.Type == ShapeType.Picture)
{
office-file-api-ai-implementation/CS/Controllers/AccessibilityController.cs#L39
{
if (shape.Type == DevExpress.XtraRichEdit.API.Native.ShapeType.Picture && string.IsNullOrEmpty(shape.AltText))
{
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Shapes.vb#L89
' 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
' 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
' Rotate pictures.
If s.Type = DevExpress.XtraRichEdit.API.Native.ShapeType.Picture Then
' Resize text boxes.
See Also