Table of contents
TOC
折叠目录
展开目录

Characters.FieldCategory 属性 (Visio)Characters.FieldCategory Property (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回由某个对象代表的域的域类别。只读。Returns the field category for a field represented by an object. Read-only.

语法Syntax

表达式FieldCategoryexpression . FieldCategory

表达式_一个表示一个字符对象的变量。_expression A variable that represents a Characters object.

返回值Return Value

IntegerInteger

注解Remarks

如果字符对象不包含字段或包含非域字符,则FieldCategory属性返回一个异常。获取其FieldCategory属性之前,请检查字符对象的IsField属性。If the Characters object does not contain a field or contains non-field characters, the FieldCategory property returns an exception. Check the IsField property of the Characters object before getting its FieldCategory property.

域类别对应于对话框中的类别列表 (插入选项卡上单击)。Field categories correspond to those in the Category list in the Field dialog box (click Field on the Insert tab).

若要添加自定义字段,请使用AddCustomField方法。To add a custom field, use the AddCustomField method.

下列常量字段类别都由VisFieldCategories中的 Visio 类型库声明。The following constants for field categories are declared by the Visio type library in VisFieldCategories .

* * 常 * *Constant *** * 值 * *Value **
visFCatCustomvisFCatCustom00
visFCatDateTimevisFCatDateTime11
visFCatDocumentvisFCatDocument22
visFCatGeometryvisFCatGeometry33
visFCatObjectvisFCatObject44
visFCatPagevisFCatPage55
© 2018 Microsoft