Inserts the specified range in the collection. Syntax Parameters index The 0-based index in the collection where the range should be inserted.range The range to insert in the collection.
Gets the range at the specified index in the collection. Syntax Parameters index The zero-based index of the range to get. Property Value The range at the specified index. Exceptions Exception Description System.ArgumentOutOfRangeException index is less than zero or index is greater than or equal to Count.
Removes the specified range from the collection. Syntax Parameters range The range to remove from the collection. Return Value True if the range was successfully removed from the collection; False if the range did not exist in the collection.
Removes the range at the specified index from the collection. Syntax Parameters index The index of the range to remove from the collection. Exceptions Exception Description System.ArgumentOutOfRangeException index is less than zero or index is greater than or equal to Count.
Object used to define a permission to allow or deny editing for a WorksheetProtectedRange Syntax
Public Constructors Public Properties
Public Properties
Returns the name of the account for which editing is being allowed or denied. Syntax
Returns a boolean indicating whether the specified user account should be allowed to edit the specified range. Syntax
Initializes a new WorksheetProtectedRangeUserPermission Syntax Parameters accountName The name of the NT account for which the permission is being createddenyEdit False to allow editing the associated range without a password; true to disable editing of the range without a password for the specified account.