DashboardSection (Object)

Member of:

Sections collection

Description:

Represents a Dashboard section.

Note:

All section objects are inherited from a base section object. For this reason some sections have methods and properties which do not necessarily apply to them. Methods and properties that do not apply, throw exceptions.

Example:

This example shows how to access a list of controls in a Dashboard section. It also shows how to rename, hide, or display a section:

MyDashboard = ActiveDocument.Sections["Dashboard"]
Console.Write("Number of Controls = "+MyDashboard.Controls.Count)
Console.Write("The First Control is Named: "+MyDashboard.Controls[1].Name)
MyDashboard.Name = "My Dashboard Section"
//If the section is hidden then show it
if (MyDashboard.Visible == false) 
           MyDashboard.Visible = true

Methods:

Activate(), Copy(), Duplicate(), Export([optional] Filename As String, FileFormat As BqExportFileFormat, [optional], IncludeHeaders As Boolean, [optional] Prompt as Boolean), ExportToStream([optional] Filename as String, [optional] FileFormat as BqExportFileFormat, [optional] IncludeHeaders as Boolean, [optional] DataStreaming as Boolean, [optional] Prompt as Boolean, OnActivate(), OnDeactivate(), PrintOut([optional] FromPage As Number, [optional] ToPage as Number, [optional] Copies as Number, [optional] Filename as String, [optional] Prompt as Boolean), Recalculate(), Remove()

Properties:

Read-only: Property Active As Boolean, Property LastPrinted As Date, Property Type As BqSectionType

Read-write: Property Name As String, Property ShowOutliner as Boolean, Property ShowSortLine as Boolean, Property Visible As Boolean

Collections:

Controls as Controls, Shapes As Shapes