Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Sets an array of objects as a template data source.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets an array of objects as a template data source.{excerpt}
{signature:C#} 
public void BindData(Object[] columnValues, String[], columnNames, String dataSourceName, PowerPointWriter.DataBindingProperties bindingProperties)
Signature
{signature}{signature:vb.net
vb.net
}
Public Overridable Sub BindData(ByVal columnValues As Object[], ByVal columnNames As String[], ByVal dataSourceName As String, ByVal bindingProperties As DataBindingProperties
Parameters
{signature}
{parameters}
{param:columnValues}An array of objects to use as the data source.{param}
{param:columnNames}The names of the columns to get from the data source.{param}
{param:dataSourceName}The name of the data source.{param}
{param:bindingProperties}A DataBindingProperties object.{param}
{example}{code:csharp|title=C#}
            string[] values = {"Hello World", "subtitle"};
            string[] colNames = {"header", "subtitle"};
            DataBindingProperties DataProps = pptt.CreateDataBindingProperties();

            ppt.BindData(values, colNames, "DataSource1", DataProps);
{code}
{code:vbnet|title=vb.net
}
        Dim values = New String() {"Hello World", "subtitle"}
        Dim colNames = New String() {"header", "subtitle"}
        Dim DataProps As DataBindingProperites = pptt.CreateDataBindingProperties();

        pptt.BindData(values, colNames, "DataSource1", DataProps);
{code}
{example}
Param
columnValuescolumnValues

An array of objects to use as the data source.

Param
columnNamescolumnNames

The names of the columns to get from the data source.

Param
dataSourceNamedataSourceName

The name of the data source.

Param
bindingPropertiesbindingProperties

A DataBindingProperties object.

Example
Code Block
csharpcsharp
titleC#
Code Block
vbnetvbnettitle