StyleLabel Class
Style Label.When the object is serialized out as xml, its qualified name is dgm:styleLbl.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Diagrams.StyleLabel
Namespace: DocumentFormat.OpenXml.Drawing.Diagrams
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
<ChildElementInfoAttribute(GetType(TextProperties))> _
<ChildElementInfoAttribute(GetType(Style))> _
<ChildElementInfoAttribute(GetType(Shape3D))> _
<ChildElementInfoAttribute(GetType(Scene3D))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class StyleLabel _
Inherits OpenXmlCompositeElement
用法
Dim instance As StyleLabel
[ChildElementInfoAttribute(typeof(TextProperties))]
[ChildElementInfoAttribute(typeof(Style))]
[ChildElementInfoAttribute(typeof(Shape3D))]
[ChildElementInfoAttribute(typeof(Scene3D))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class StyleLabel : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
Scene3D <dgm:scene3d>
Shape3D <dgm:sp3d>
TextProperties <dgm:txPr>
Style <dgm:style>
ExtensionList <dgm:extLst>
[ISO/IEC 29500-1 第 1 个版本]
21.4.5.10 styleLbl (Style Label)
This element defines the actual style which is applied to a node in a diagram The style is referenced from within layout node. The style label contains formatting (without defining color) such as the 3D properties and text properties associated with a shape.
[Example: Consider the following example of a styleLbl in DiagramML:
<styleLbl name="node0">
<scene3d>
<camera prst="orthographicFront"/>
<lightRig rig="flat" dir="t"/>
</scene3d>
<sp3d prstMaterial="flat">
<bevelT w="120900" h="88900"/>
<bevelB w="88900" h="31750" prst="angle"/>
</sp3d>
<txPr/>
<style>
<lnRef idx="0">
<scrgbClr r="0" g="0" b="0"/>
</lnRef>
<fillRef idx="3">
<scrgbClr r="0" g="0" b="0"/>
</fillRef>
<effectRef idx="2">
<scrgbClr r="0" g="0" b="0"/>
</effectRef>
<fontRef idx="minor">
<schemeClr val="lt1"/>
</fontRef>
</style>
</styleLbl>
In this example we see a styleLbl defined which sets 3D properties for the scene, shape 3D properties, line, fill, effect and font properties. end example]
Parent Elements |
---|
styleDef (§21.4.5.7) |
Child Elements |
Subclause |
---|---|
extLst (Extension List) |
§21.4.2.13 |
scene3d (3-D Scene) |
§21.4.5.5 |
sp3d (3-D Shape Properties) |
§21.4.5.6 |
style (Shape Style) |
§21.4.2.28 |
txPr (Text Properties) |
§21.4.5.12 |
Attributes |
Description |
---|---|
name (Style Name) |
The name of the style. This apears as the tooltip in the user interface. The possible values for this attribute are defined by the W3C XML Schema string datatype. |
[Note: The W3C XML Schema definition of this element's content model (CT_StyleLabel) is located in §A.5.3. end note]
© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,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.