Add

ProtectedRangeCollection.Add method

添加一个ProtectedRange项目到集合.

public int Add(string name, int startRow, int startColumn, int endRow, int endColumn)
范围类型描述
nameString范围标题。这用作描述符,而不是命名范围定义。
startRowInt32范围的起始行索引。
startColumnInt32范围的起始列索引。
endRowInt32范围的结束行索引。
endColumnInt32范围的结束列索引。

返回值

对象索引。

也可以看看