Back to Devexpress

ProtectedRangeCollection.Add(String, String) Method

officefileapi-devexpress-dot-spreadsheet-dot-protectedrangecollection-dot-add-x28-system-dot-string-system-dot-string-x29.md

latest1.7 KB
Original Source

ProtectedRangeCollection.Add(String, String) Method

Creates a new protected range and adds it to the collection.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
ProtectedRange Add(
    string name,
    string refersTo
)
vb
Function Add(
    name As String,
    refersTo As String
) As ProtectedRange

Parameters

NameTypeDescription
nameString

A string that is the name of the new protected range.

| | refersTo | String |

A string that specifies a reference to a cell or cell range which can be edited in a protected sheet.

|

Returns

TypeDescription
ProtectedRange

A ProtectedRange object that is the newly added element in the collection.

|

See Also

ProtectedRangeCollection Interface

ProtectedRangeCollection Members

DevExpress.Spreadsheet Namespace