ControlCollection.Item Property (String) (2007 System)
Gets the control with the specified name.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
name As String _
) As Object
'Usage
Dim instance As ControlCollection
Dim name As String
Dim value As Object
value = instance(name)
public Object this[
string name
] { get; }
public:
property Object^ default[String^ name] {
Object^ get (String^ name);
}
JScript does not support indexed properties.
Parameters
name
Type: System.StringThe string that represents the name of the control.
Property Value
Type: System.Object
The control with the specified name.
Remarks
For controls that you add programmatically, the name parameter should contain the name that you specify as the last parameter of the Add<control> method, not the Name property of the control.
For controls that you add at design time, the name parameter should contain the identifier.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.