Returns the template for formatting the field values of a record in the passed-in table
Syntax
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) |
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
Requirements
Target 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
See Also