CommentProperties-Klasse
Defines the CommentProperties Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is x:commentPr.
Vererbungshierarchie
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Spreadsheet.CommentProperties
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(ObjectAnchor), FileFormatVersions.Office2010)> _
Public Class CommentProperties _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As CommentProperties
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(ObjectAnchor), FileFormatVersions.Office2010)]
public class CommentProperties : OpenXmlCompositeElement
Hinweise
The following table lists the possible child types:
- ObjectAnchor <x:anchor>
[ISO/IEC 29500-1 1. Ausgabe]
18.7.5 commentPr (Comment Properties)
This element specifies the visual and positional properties of a comment.
[Example: In the following example, the comment's visual representation resizes with the
<comment … >
<text> … </text>
<commentPr autoFill="false">
<anchor moveWithCells="true" sizeWithCells="true">
<from> … </from>
<to> … </to>
<anchor>
</commentPr>
</comment>
end example]
Parent Elements |
---|
comment (§18.7.3) |
Child Elements |
Subclause |
---|---|
anchor (Object Cell Anchor) |
§18.3.1.1 |
Attributes |
Description |
---|---|
altText (Alternative Text) |
Specifies alternative text for the object, for use by assistive technologies or applications. [Example:
end example] The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19). |
autoFill (Automatic Fill Flag) |
Specifies whether the object's fill formatting is provided automatically by the application. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
autoLine (Automatic Line Flag) |
Specifies whether the object's line formatting is provided automatically by the application. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
autoScale (Automatic Text Scaling Flag) |
Specifies whether the object's font is automatically scaled by the application when the object is resized. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
colHidden (Hidden Column Flag) |
Specifies that the column of the cell to which this comment points is hidden. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
defaultSize (Default Size Flag) |
Specifies whether the object is at its default size. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
disabled (Disabled Flag) |
Specifies whether the object is allowed to run an attached macro. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
justLastX (Far East Alignment Flag) |
Specifies that Far East alignment is set for the last line in the comment's text. Typically, justified text in Far East environments leaves the last line unjustified. Specifying this element also justifies the last line. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
locked (Locked Flag) |
Specifies that the object is locked when the sheet is protected. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
lockText (Text Lock Flag) |
Specifies that the object's text is locked. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
print (Print Flag) |
Specifies whether the object is printed when the document is printed. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
rowHidden (Hidden Row Flag) |
Specifies that the row of the cell to which this comment points is hidden. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
textHAlign (Text Horizontal Alignment) |
Specifies the horizontal alignment of the comment's text field. [Example:
end example] The possible values for this attribute are defined by the ST_TextHAlign simple type (§18.18.80). |
textVAlign (ext Vertical Alignment) |
Specifies the vertical alignment of the comment's text field. [Example:
end example] The possible values for this attribute are defined by the ST_TextVAlign simple type (§18.18.81). |
uiObject (UI Object Flag) |
Specifies whether the object is a UI Object. [Example:
end example] The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
[Note: The W3C XML Schema definition of this element's content model (CT_CommentPr) is located in §A.2. end note]
© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.