Calc .NET Class Library
Show/Hide TOC

# Section Class

Represents a named region of content in a document.

## Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#

    public class Section : ITextContent, IIndexContent,
    	IContentElement, ICellContent, IHeaderFooterContent

VB

    Public Class Section
    	Implements ITextContent, IIndexContent, IContentElement, ICellContent,
    	IHeaderFooterContent

Inheritance
  Object Section

Implements
  ICellContent, IContentElement, IIndexContent, ITextContent, IHeaderFooterContent

## Constructors

Section | Initializes a new instance of the Section class.

## Properties

Condition | Contains the condition under which a section is hidden. The condition is encoded as a string.
Content | Contains a collection of ITextContent objects.
Display | Specifies whether the section is hidden. The defined values are: -condition: the section is hidden under the condition specified in the text:condition attribute. -none: the section is hidden unconditionally. -true: the section is displayed. This is the default setting.
IsProtected | Specifies whether a section is protected.
Name | Contains the unique name for a section.
ProtectionKey | Specifies that an authorization is required for removing the protection of a section.
Style | Contains the section family style for a section.

## Methods

Add(Change) | Adds a Change object to the content.
Add(ChangeEnd) | Adds a ChangeEnd object to the content.
Add(ChangeStart) | Adds a ChangeStart object to the content.
Add(Heading) | Adds a Heading object to the content.
Add(IndexOfIllustrations) | Adds a IndexOfIllustrations object to the content.
Add(ITextContent) | Adds a ITextContent object to the content.
Add(List) | Adds a List object to the content.
Add(Paragraph) | Adds a Paragraph object to the content.
Add(Section) | Adds a Section object to the content.
Add(Shape) | Adds a Shape object to the content.
Add(SoftPageBreak) | Adds a SoftPageBreak object to the content.
Add(Table) | Adds a Table object to the content.
Add(TableOfContents) | Adds a TableOfContents 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.
GetHashCode | (Inherited from Object)
GetParent | Returns the parent element.
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current Section object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf Namespace