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

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

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

返回由某个对象代表的自定义域的公式。只读。Returns the formula of the custom field represented by an object. Read-only.

语法Syntax

表达式FieldFormulaexpression . FieldFormula

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

返回值Return Value

字符串String

注解Remarks

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

FieldFormula属性返回的公式对应于显示在对话框中自定义公式框中的公式 (单击插入选项卡上的)。The formula returned by the FieldFormula property corresponds to the formula that appears in the Custom formula box in the Field dialog box (click Field on the Insert tab).

请注意 从 Microsoft Visio 2000 开始,可以使用本地和通用名称来指代 Visio 形状、 主控形状、 文档、 页面、 行、 加载项、 单元格、 超链接、 样式、 字体、 主控形状快捷方式、 用户界面对象和图层。当用户为某个形状命名时,例如,用户指定的本地名称。从 Microsoft Office Visio 2003 开始,ShapeSheet 电子表格中单元格的公式和值显示只有通用名称。(在先前版本中,通用名称都不可见的用户界面中。)Note Beginning with Microsoft Visio 2000, you can use both local and universal names to refer to Visio shapes, masters, documents, pages, rows, add-ons, cells, hyperlinks, styles, fonts, master shortcuts, UI objects, and layers. When a user names a shape, for example, the user is specifying a local name. Beginning with Microsoft Office Visio 2003, the ShapeSheet spreadsheet displays only universal names in cell formulas and values. (In prior versions, universal names were not visible in the user interface.)

作为开发人员,您可以在程序中使用通用名称时,您不希望每次本地化解决方案时都更改名称。使用FieldFormula属性以获取本地语法中的公式。使用FieldFormulaU属性来获取通用语法公式。As a developer, you can use universal names in a program when you don't want to change a name each time a solution is localized. Use the FieldFormula property to get a formula in local syntax. Use the FieldFormulaU property to get a formula in universal syntax.

© 2018 Microsoft