TTMSFNCIPEdit.IPAddressType Property
Address format displayed and validated by the control (IPv4, IPv6, or MAC).
API unit family: TMSFNCIPEdit
Declaring type: TTMSFNCIPEdit
Inherited from: TTMSFNCCustomIPEdit
Type: TTMSFNCIPEditType
Syntax
property IPAddressType: TTMSFNCIPEditType;
__property TTMSFNCIPEditType IPAddressType = {read=FIPAddressType, write=SetIPAddressType, default=0};
Default: IPv4
Usage examples
Configure IPv4 entry
Sets IPv4 mode and assigns an address string.
procedure TForm1.ConfigureIPEdit;
begin
TMSFNCIPEdit1.IPAddressType := IPv4;
TMSFNCIPEdit1.IPAddress := '192.168.0.10';
TMSFNCIPEdit1.OnChange := TMSFNCIPEdit1Change;
end;
void __fastcall TForm1::ConfigureIPEdit()
{
TMSFNCIPEdit1->IPAddressType = IPv4;
TMSFNCIPEdit1->IPAddress = "192.168.0.10";
TMSFNCIPEdit1->OnChange = TMSFNCIPEdit1Change;
}