次の方法で共有


DayShort Class

Date Block - Short Day Format.When the object is serialized out as xml, its qualified name is w:dayShort.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.EmptyType
DocumentFormat.OpenXml.Wordprocessing.DayShort

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

Syntax

'宣言
Public Class DayShort _
    Inherits EmptyType
'使用
Dim instance As DayShort
public class DayShort : EmptyType

Remarks

[ISO/IEC 29500-1 初版]

17.3.3.6 dayShort (Date Block - Short Day Format)

This element specifies the presence of a date block at the current location in the run content. A date block is a non-editable region of text which shall display the current date filtered through the specified date picture (see following paragraphs) . [Note: The date block is a legacy construct used for compatibility with older word processors, and should not be produced unless it was consumed while reading a document - it is recommended that the DATE field is used in its place. end note]

A date block shall be displayed using the primary editing language of the host application, regardless of the languages specified in the parent run's lang property (§17.3.2.20).

The short day format date block shall use a date picture of DD, retrieving the short day format for the primary editing language.

[Example: Consider a WordprocessingML run with the following run content:

<w:r>
<w:t xml:space="preserve">This is a short date: </w:t>
<w:dayShort />
</w:r>

This run specifies that a short day format date block must be placed after the text string literal This is a short date: in the document. Assuming that the host application's primary editing language is English (Canada) and today's date is 2006-04-12, this run would be displayed as follows:

This is a short date: 12

end example]

Parent Elements

r (§22.1.2.87); r (§17.3.2.25)

[Note: The W3C XML Schema definition of this element's content model (CT_Empty) is located in §A.1. end note]

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DayShort Members

DocumentFormat.OpenXml.Wordprocessing Namespace