Version

Search Results

Insert Method (WorksheetProtectedRangeCollection)

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.

Item Property (WorksheetProtectedRangeCollection)

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.

Remove Method (WorksheetProtectedRangeCollection)

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.

RemoveAt Method (WorksheetProtectedRangeCollection)

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.

WorksheetProtectedRangeUserPermission Structure

Object used to define a permission to allow or deny editing for a WorksheetProtectedRange Syntax

WorksheetProtectedRangeUserPermission Structure Members

Public Constructors Public Properties

AccountName Property

Returns the name of the account for which editing is being allowed or denied. Syntax

DenyEdit Property

Returns a boolean indicating whether the specified user account should be allowed to edit the specified range. Syntax

WorksheetProtectedRangeUserPermission Constructor

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.