次の方法で共有


FitText.Val Property

Value.Represents the attribte in schema: w:val

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

Syntax

'宣言
<SchemaAttrAttribute(, "val")> _
Public Property Val As UInt32Value
    Get
    Set
'使用
Dim instance As FitText
Dim value As UInt32Value

value = instance.Val

instance.Val = value
[SchemaAttrAttribute(, "val")]
public UInt32Value Val { get; set; }

Property Value

Type: DocumentFormat.OpenXml.UInt32Value
Returns UInt64Value.

Remarks

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

This attribute specifies the exact width of space which this run shall be fit into when displayed in the document.

Consider a document with a run which shall be displayed in exactly one-half inch of space, regardless of its contents. This constraint would be specified using the following WordprocessingML:

<w:r>
  <w:rPr>
    <w:fitText w:id="50" w:val="720" />
  </w:rPr>
  <w:t>This text shall be displayed in one-half of an inch.</w:t>
</w:r>

The resulting run contents shall be displayed in exactly 720 twentieths of a point (one half of an inch) when displayed in a document.

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

See Also

Reference

FitText Class

FitText Members

DocumentFormat.OpenXml.Wordprocessing Namespace