FieldNamesVisibleInBalloon property
Returns or sets whether field names (Name property of the Field object) are visible in Pushpin balloons for a specified data set. Read/write Boolean.
Applies to
Objects: DataSet
Syntax
object.FieldNamesVisibleInBalloon
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a DataSet object. |
Remarks
To set which fields are visible in Pushpin balloons for a data set, use the SetFieldsVisibleInBalloon method on the DataSet object.
To return the visible state of a field in a Pushpin balloon, use the VisibleInBalloon property of the Field object.
Example
Sub ToggleFieldNames()
Dim objApp As New MapPoint.Application
Dim objDataSet As MapPoint.DataSet
objApp.Visible = True
objApp.UserControl = True
Set objDataSet = objApp.OpenMap(objApp.Path & "\Samples\Clients.ptm").DataSets("Clients")
'Toggle the field names on or off
If objDataSet.FieldNamesVisibleInBalloon = False Then
objDataSet.FieldNamesVisibleInBalloon = True
Else
objDataSet.FieldNamesVisibleInBalloon = False
End If
End Sub