DoNotLeaveBackslashAlone Class
Convert Backslash To Yen Sign When Entered.When the object is serialized out as xml, its qualified name is w:doNotLeaveBackslashAlone.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffType
DocumentFormat.OpenXml.Wordprocessing.DoNotLeaveBackslashAlone
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
Public Class DoNotLeaveBackslashAlone _
Inherits OnOffType
'使用
Dim instance As DoNotLeaveBackslashAlone
public class DoNotLeaveBackslashAlone : OnOffType
Remarks
[ISO/IEC 29500-1 初版]
17.15.3.6 doNotLeaveBackslashAlone (Display Backslash As Yen Sign)
This element specifies whether applications should autodisplay the backslash character using the yen character when displaying the contents of this document.
Typically, no automatic display-only conversion of one character to another is performed. This element, when present with a val attribute value of true (or equivalent), specifies that all occurances of the backslash character (\, U+005C) shall automatically be displayed using the yen symbol (\, U+00A5) when the contents of the document are displayed. This setting does not change the Unicode value of the character stored in the underlying WordprocessingML document.
[Rationale: In Japanese code page 932, 0x5C is the yen sign (whereas, in most other code pages, it is the reverse solidus-also known as the backslash). In order to accommodate the user expectation that this code point appear as the yen sign, this setting dictates that the character be remapped, for display only, to the Unicode character \, such that the expected appearance is maintained. end rationale]
[Example: Consider a WordprocessingML document containing the following:
Hello \ world.
The default presentation would have exactly that:
Hello \ world.
However, if this compatibility setting is turned on:
<w:compat>
<w:doNotLeaveBackslashAlone />
</w:compat>
Then the backslash would be displayed as \, resulting in the following output:
Hello \ world.
end example]
Parent Elements |
---|
compat (§17.15.1.21) |
This element's content model is defined by the common boolean property definition in §17.17.4.
© 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.