ESRI.ArcGIS.ADF.Web
GetContentsTemplate(DataTable,Boolean,Color,Boolean) Method
See Also 
ESRI.ArcGIS.ADF.Web.Display.Graphics Namespace > GraphicsLayer Class > GetContentsTemplate Method : GetContentsTemplate(DataTable,Boolean,Color,Boolean) Method




dataTable
Table to find formatting for.
returnFieldNames
Whether field names should be returned. If False, field indices will be used in the format string
fieldBackgroundColor
The background color for field names.
createTemplateIfNull
Whether a template should be created if none is set on the table.
Returns the template for formatting the field values of a record in the passed-in table

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function GetContentsTemplate( _
   ByVal dataTable As DataTable, _
   ByVal returnFieldNames As Boolean, _
   ByVal fieldBackgroundColor As Color, _
   ByVal createTemplateIfNull As Boolean _
) As String
Visual Basic (Usage)Copy Code
Dim dataTable As DataTable
Dim returnFieldNames As Boolean
Dim fieldBackgroundColor As Color
Dim createTemplateIfNull As Boolean
Dim value As String
 
value = GraphicsLayer.GetContentsTemplate(dataTable, returnFieldNames, fieldBackgroundColor, createTemplateIfNull)
C# 
public static string GetContentsTemplate( 
   DataTable dataTable,
   bool returnFieldNames,
   Color fieldBackgroundColor,
   bool createTemplateIfNull
)

Parameters

dataTable
Table to find formatting for.
returnFieldNames
Whether field names should be returned. If False, field indices will be used in the format string
fieldBackgroundColor
The background color for field names.
createTemplateIfNull
Whether a template should be created if none is set on the table.

Return Value

Format string

See Also

© 2010 All Rights Reserved.