_AutoFormatRules.Insert(String, Object) 方法

定义

创建一个新 AutoFormatRule 对象,并将其插入集合中的 AutoFormatRules 指定索引处。

public:
 Microsoft::Office::Interop::Outlook::AutoFormatRule ^ Insert(System::String ^ Name, System::Object ^ Index);
public Microsoft.Office.Interop.Outlook.AutoFormatRule Insert (string Name, object Index);
Public Function Insert (Name As String, Index As Object) As AutoFormatRule

参数

Name
String

新对象的名称。

Index
Object

要插入新对象的索引号,或者用于匹配 Name 集合中要插入新对象的对象的属性值的值。

返回

AutoFormatRule 对象,该对象表示新的格式设置规则。

注解

此方法不能用来在内置的格式设置规则之间或之前插入自定义格式设置规则。

AutoFormatRules 集合中允许重复的名称为 AutoFormatRule 的对象。 25 日的自定义格式设置规则的最多可以添加到集合中。 内置的格式设置规则不是计入该限制。

适用于