SrgsToken.Display 属性

定义

获取或设置需朗读的文本的显示形式。Gets or sets the display form of the text to be spoken.

public:
 property System::String ^ Display { System::String ^ get(); void set(System::String ^ value); };
public string Display { get; set; }
member this.Display : string with get, set
Public Property Display As String

属性值

String

标记应显示的表示形式。A representation of the token as it should be displayed.

例外

尝试将 Display 设置为 nullAn attempt is made to set Display to null.

试图将 Display 指定为空字符串。An attempt is made to assign an empty string to Display.

注解

尽管它们通常表示相同的值,但 Display 窗体可能不同于 Text 中某个词或短语的形式 SrgsTokenAlthough they typically represent the same value, the Display form may be different than the Text form for a word or phrase in a SrgsToken. 例如,显示窗体可能是一个缩写词,如 "USA",而要朗读的文本和应用的文本 Pronunciation 为 "北美洲的美国"。For example, the display form may be an acronym, such as "USA", while the text that will be spoken, and to which the Pronunciation applies, is "United States of America".

适用于