Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Sets a two-dimensional

...

array

...

of

...

objects

...

as

...

a

...

template

...

data

...

source

Signature
C#
C#
 
public void BindData(Object[][] arrayData, String[] columnNames, String dataSourceName, PowerPointWriter.DataBindingProperties bindingProperties)
{signature}
{signature:
}
Signature
vb.net
vb.net
Public Overridable Sub BindData(ByVal arrayData As Object()(), ByVal columnNames As String(), ByVal dataSourceName As String, ByVal bindingProperties As DataBindingProperties
{signature}
{parameters}
{param:arrayData}A two dimensional array of objects to use as the data source.  By default, the first dimension corresponds to row and the second to column. ex: Object[row][column]{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#}
Parameters
Param
arrayData
arrayData

A two dimensional array of objects to use as the data source. By default, the first dimension corresponds to row and the second to column. ex: Objectrowcolumn

Param
columnNames
columnNames

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

Param
dataSourceName
dataSourceName

The name of the data source.

Param
bindingProperties
bindingProperties

A DataBindingProperties object.

Example
Code Block
csharp
csharp
titleC#

            string[][] values = {
               new string[]{"Watertown", "MA", "02472"},
               new string[]{"Washington", "DC", "20500"}
               };
            string[] colNames = {"City", "State", "Zip"};
            DataBindingProperties DataProps = pptt.CreateDataBindingProperties();

            ppt.BindData(values, colNames, "DataSource1", DataProps);
{code} {code:vbnet|title=
Code Block
vbnet
vbnet
titlevb.net
}

        Dim values()() As String = New String()() { _
               New String(){"Watertown", "MA", "02472"}, _
               New String(){"Washington", "DC", "20500"}, _
               }
        Dim colNames = New String() {"City", "State", "Zip"}
        Dim DataProps As DataBindingProperties = pptt.CreateDataBindingProperties()

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