Skip to main content
Table of Contents

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

FMX.TMSFNCIPEdit.hppPascalC++
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.

Configure IPv4 entryPascalC++
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;
}

Read the related guide