|
| ESRI.ArcGIS.ADF.Web | |
| GetContentsTemplate(DataTable,Boolean,Color,Boolean,String[]) Method | |
| See Also Send Feedback | |
| ESRI.ArcGIS.ADF.Web.Display.Graphics Namespace > GraphicsLayer Class > GetContentsTemplate Method : GetContentsTemplate(DataTable,Boolean,Color,Boolean,String[]) 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.
- 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:.
| Visual Basic (Declaration) | |
|---|---|
Public Overloads Shared Function GetContentsTemplate( _ ByVal dataTable As DataTable, _ ByVal returnFieldNames As Boolean, _ ByVal fieldBackgroundColor As Color, _ ByVal createTemplateIfNull As Boolean, _ ByVal excludedColumns() As String _ ) As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim dataTable As DataTable Dim returnFieldNames As Boolean Dim fieldBackgroundColor As Color Dim createTemplateIfNull As Boolean Dim excludedColumns() As String Dim value As String value = GraphicsLayer.GetContentsTemplate(dataTable, returnFieldNames, fieldBackgroundColor, createTemplateIfNull, excludedColumns) | |
| C# | |
|---|---|
public static string GetContentsTemplate( DataTable dataTable, bool returnFieldNames, Color fieldBackgroundColor, bool createTemplateIfNull, string[] excludedColumns ) | |
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.
- 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 stringTarget Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family