Compartir a través de


PresetTextWrap.Preset Property

Preset Warp Shape.Represents the attribte in schema: prst

Namespace:  DocumentFormat.OpenXml.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaración
<SchemaAttrAttribute(, "prst")> _
Public Property Preset As EnumValue(Of TextShapeValues)
    Get
    Set
'Uso
Dim instance As PresetTextWrap
Dim value As EnumValue(Of TextShapeValues)

value = instance.Preset

instance.Preset = value
[SchemaAttrAttribute(, "prst")]
public EnumValue<TextShapeValues> Preset { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<TextShapeValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the preset geometry that will be used for a shape warp on a piece of text. This preset can have any of the values in the enumerated list for ST_TextShapeType. This attribute is required in order for a text warp to be rendered.

Consider the sample DrawingML below.

<p:sp>
  <p:txBody>
    <a:bodyPr wrap="none" rtlCol="0">
      <a:prstTxWarp prst="textInflate">
      </a:prstTxWarp>
      <a:spAutoFit/>
    </a:bodyPr>
    <a:lstStyle/>
    <a:p>
    …
      <a:t>Sample Text</a:t>
    … 
    </a:p>
  </p:txBody>
</p:sp>

In the above example, a preset text shape geometry has been used to define the warping shape. The shape utilized here is the sun shape.

The possible values for this attribute are defined by the ST_TextShapeType simple type.

See Also

Reference

PresetTextWrap Class

PresetTextWrap Members

DocumentFormat.OpenXml.Drawing Namespace