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




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.
excludedColumns
List of column names to be exclueded if creating a template when null. A case insensitive comparison is made to exclude columns. For example, "ObjectID" will also match "OBJECTID:.
Returns the template for formatting the field values of a record in the GraphicsLayer

Syntax

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

Parameters

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.
excludedColumns
List of column names to be exclueded if creating a template when null. A case insensitive comparison is made to exclude columns. For example, "ObjectID" will also match "OBJECTID:.

Return Value

Format string

See Also

© 2010 All Rights Reserved.