다음을 통해 공유


FitText.Val Property

Definition

Value

Represents the following attribute in the schema: w:val

[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.UInt32Value Val { get; set; }
public DocumentFormat.OpenXml.UInt32Value Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.UInt32Value? Val { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:val")]
public DocumentFormat.OpenXml.UInt32Value? Val { get; set; }
public DocumentFormat.OpenXml.UInt32Value? Val { get; set; }
member this.Val : DocumentFormat.OpenXml.UInt32Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "val")>]
member this.Val : DocumentFormat.OpenXml.UInt32Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:val")>]
member this.Val : DocumentFormat.OpenXml.UInt32Value with get, set
Public Property Val As UInt32Value

Property Value

Returns UInt64Value.

Attributes

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.

Applies to