Visio) (ValidationRule.Description 屬性
指定出現在使用者介面中的 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 支援與意見反應。