RegexCollection Interface

 

Represents a collection of regular expressions to be recognized by a smart tag in an Office solution.

Namespace:   Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

[GuidAttribute("cfab1305-802f-4c99-8aa2-f68281840d39")]
public interface RegexCollection : IList, ICollection, IEnumerable

NameDescription
System_CAPS_pubpropertyCount

(Inherited from ICollection.)

System_CAPS_pubpropertyIsFixedSize

(Inherited from IList.)

System_CAPS_pubpropertyIsReadOnly

(Inherited from IList.)

System_CAPS_pubpropertyIsSynchronized

(Inherited from ICollection.)

System_CAPS_pubpropertyItem[Int32]

Gets or sets the regular expression at the specified index.

System_CAPS_pubpropertySyncRoot

(Inherited from ICollection.)

NameDescription
System_CAPS_pubmethodAdd(Object)

(Inherited from IList.)

System_CAPS_pubmethodAdd(Regex)

Adds a regular expression to the end of the RegexCollection.

System_CAPS_pubmethodAddRange(Regex[])

Adds an array of regular expressions to the end of RegexCollection.

System_CAPS_pubmethodClear()

(Inherited from IList.)

System_CAPS_pubmethodContains(Object)

(Inherited from IList.)

System_CAPS_pubmethodContains(Regex)

Determines whether the RegexCollection contains a specific regular expression.

System_CAPS_pubmethodCopyTo(Array, Int32)

(Inherited from ICollection.)

System_CAPS_pubmethodCopyTo(Regex[], Int32)

Copies the entire RegexCollection to a compatible one-dimensional array, starting at the specified index of the target array.

System_CAPS_pubmethodGetEnumerator()

(Inherited from IEnumerable.)

System_CAPS_pubmethodIndexOf(Object)

(Inherited from IList.)

System_CAPS_pubmethodIndexOf(Regex)

Searches for the specified regular expression and returns the zero-based index of the first occurrence within the entire RegexCollection.

System_CAPS_pubmethodInsert(Int32, Object)

(Inherited from IList.)

System_CAPS_pubmethodInsert(Int32, Regex)

Inserts an element into the RegexCollection at the specified index.

System_CAPS_pubmethodRemove(Object)

(Inherited from IList.)

System_CAPS_pubmethodRemove(Regex)

Removes the first occurrence of a specific regular expression from the RegexCollection.

System_CAPS_pubmethodRemoveAt(Int32)

(Inherited from IList.)

When you create a Microsoft.Office.Tools.Excel.SmartTag or Microsoft.Office.Tools.Word.SmartTag object to create a smart tag, you can use the Expressions property to add a regular expression to be recognized by the smart tag. The Expressions property has the type RegexCollection.

This type is intended to be used only in projects for Excel 2007 and Word 2007. Smart tags are deprecated in Excel 2010 and Word 2010..

Return to top
Show: