共用方式為


ValidationRule.Description 屬性 (Visio)

指定出現在使用者介面中的 ValidationRule 物件描述。 讀取/寫入。

語法

表情描述

一個代表 ValidationRule 物件的變數。

傳回值

字串

註解

您不能將 Description 屬性設定為超過 255 個字元的值。

範例

以下 Visual Basic for Applications (VBA) 範例展示了如何使用 Description 屬性來設定使用者介面中出現的驗證規則「Unglued2DShape」的描述。

Set vsoValidationRule = vsoValidationRuleSet.Rules.Add("Unglued2DShape")
vsoValidationRule.Description = "This 2-dimensional shape is not connected to any other shape."

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應