共用方式為


PresetTextWrap.Preset Property

Definition

Preset Warp Shape

Represents the following attribute in the schema: prst

[DocumentFormat.OpenXml.SchemaAttr(0, "prst")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextShapeValues> Preset { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextShapeValues> Preset { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "prst")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextShapeValues>? Preset { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("prst")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextShapeValues>? Preset { get; set; }
member this.Preset : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextShapeValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "prst")>]
member this.Preset : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextShapeValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("prst")>]
member this.Preset : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Drawing.TextShapeValues> with get, set
Public Property Preset As EnumValue(Of TextShapeValues)

Property Value

Returns EnumValue<T>.

Attributes

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.

Applies to