PasswordBox.PasswordChar 属性

定义

获取或设置 PasswordBox 的掩码字符。

public:
 property Platform::String ^ PasswordChar { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring PasswordChar();

void PasswordChar(winrt::hstring value);
public string PasswordChar { get; set; }
var string = passwordBox.passwordChar;
passwordBox.passwordChar = string;
Public Property PasswordChar As String
<PasswordBox PasswordChar="char"/>

属性值

String

Platform::String

winrt::hstring

当用户在 PasswordBox 中输入文本时要回显的掩码字符。 默认值为项目符号字符 (●) 。

适用于