Frame class

Office 2013 and later

Single Frame Properties. When the object is serialized out as xml, its qualified name is w:frame.

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

frame (Single Frame Properties)

This element specifies the properties for a single frame within a frameset document. When a document defines a frameset using the frameset element; that frameset is composed of a set of frames, each of which is specified by a single frame element.

[Example: Consider a WordprocessingML document which serves as the frameset container for a frameset consisting of the following three frames:

The frameset properties for this document are specified by the following WordprocessingML within the web page settings:

<w:frameset>
  …
  <w:frame>
    <w:sz w:val="20%" />
    <w:name w:val="Frame 1" />
    <w:sourceFileName r:id="rId1" />
  </w:frame>
  <w:frameset>
    …
  </w:frameset>
</w:frameset>

The frame element specifies the set of properties for a single frame in the document. In this case, these properties (for the frame marked with Frame the diagram above) specify that the frame must have the following properties:

  • A height of 20% of the height of the document

  • A name of Frame 1

  • The contents of the frame must be pulled from the document that is the target of the relationship with ID rId1

end example]

Parent Elements

frameset (§17.15.2.18); frameset (§17.15.2.19)

Child Elements

Subclause

linkedToFile (Maintain Link to Existing File)

§17.15.2.22

longDesc (Frame Long Description)

§17.15.2.23

marH (Top and Bottom Margin for Frame)

§17.15.2.25

marW (Left and Right Margin for Frame)

§17.15.2.29

name (Frame Name)

§17.15.2.30

noResizeAllowed (Frame Cannot Be Resized)

§17.15.2.32

scrollbar (Scrollbar Display Option)

§17.15.2.38

sourceFileName (Source File for Frame)

§17.15.2.39

sz (Frame Size)

§17.15.2.40

title (Frame or Frameset Title)

§17.15.2.43

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

© ISO/IEC29500: 2008.

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