ODF .NET Class Library
Show/Hide TOC

# Frame Class

Represents a frame and serves as the container for elements that may occur in a frame.

## Definition

Namespace: Independentsoft.Office.Odf.Drawing
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class Frame : Shape

VB

    Public Class Frame
    	Inherits Shape

Inheritance
  Object Shape Frame

## Constructors

Frame | Initializes a new instance of the Frame class.

## Properties

AlternativeText | Contains a prose description of a graphic object that may be used to support accessibility.
AnchorPageNumber | Contains the physical page number of an anchor if the drawing object is bound to a page within a text document.
AnchorType | Specifies how a frame is bound to a text document.
ClassNames | Contains a white space separated list of styles with the family value
Content | Contains a collection of FrameContentElement objects.
CopyOf | Specifies that a frame displays the contents of another frame. This does not effect style and position information.
EventListeners | Contains an attachment of an event listener to a drawing shape.
GluePoints | Contains a designated point in the area of a drawing object to which a connector shape can connect.
Height | (Inherited from Shape)
ID | (Inherited from Shape)
Layer | (Inherited from Shape)
MinHeight | If set, it overrides the height of a text box.
MinWidth | If set, it overrides the width of a text box.
Name | (Inherited from Shape)
RelativeHeight | Contains height of a drawing object as a relative value within a frame.
RelativeWidth | Contains width of a drawing object as a relative value within a frame.
Style | (Inherited from Shape)
TextStyle | (Inherited from Shape)
Title | Contains a short accessible name of a graphic object.
Transform | (Inherited from Shape)
Width | (Inherited from Shape)
X | (Inherited from Shape)
Y | (Inherited from Shape)
ZIndex | (Inherited from Shape)

## Methods

Add(FrameContentElement) | Adds FrameContentElement object to the content.
Add(Image) | Adds Image object to the content.
Add(Object) | Adds a Object object to the content.
Add(OleObject) | Adds OleObject object to the content.
Add(TextBox) | Adds TextBox object to the content.
Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetContentElements | Returns all content elements. (Overrides ShapeGetContentElements)
GetHashCode | (Inherited from Object)
GetParent | Returns the parent element. (Overrides ShapeGetParent)
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current Frame object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf.Drawing Namespace