AlternateFormat Property
Sets or returns a formatting string for the text value that is displayed on devices that are not able to originate telephone calls. The default value is {0} {1}, meaning that the default text will be the Text property with the PhoneNumber property concatenated to it, with a space between them.
public string AlternateFormat {
get,
set
}
Remarks
An example of the default string is, Call {0} at {1} right now!! where the system replaces {0} with the Text property, and {1} with the PhoneNumber property.
Example
The following example demonstrates how to use the AlternateFormat property to concatenate the PhoneNumber and Text properties in the desired format.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
PhoneCall1.Text = "Police, Fire, Ambulance"
PhoneCall1.PhoneNumber = "911"
'Concatenates the PhoneNumber and Text strings in specified formats.
PhoneCall1.AlternateFormat = "Call {0} At {1}"
End Sub
[C#]
private void Page_Load(object sender, System.EventArgs e)
{
PhoneCall1.Text = "Police, Fire, Ambulance";
PhoneCall1.PhoneNumber = "911";
// Concatenates the PhoneNumber and Text strings in specified formats.
PhoneCall1.AlternateFormat="Call {0} At {1}";
}
See Also
Applies to: PhoneCall Class