Class CellWatchCollection

Class CellWatchCollection

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Đại diện cho bộ sưu tập các ô trên bảng tính này đang được theo dõi trong ‘cửa sổ theo dõi’.

public class CellWatchCollection : CollectionBase<cellwatch>, IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable

Kế thừa

objectCollectionBase<cellwatch>CellWatchCollection

Triển khai

IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable

Các thành viên kế thừa

CollectionBase<cellwatch>.BinarySearch(CellWatch), CollectionBase<cellwatch>.BinarySearch(CellWatch, IComparer<cellwatch>), CollectionBase<cellwatch>.BinarySearch(int, int, CellWatch, IComparer<cellwatch>), CollectionBase<cellwatch>.Contains(CellWatch), CollectionBase<cellwatch>.CopyTo(CellWatch[]), CollectionBase<cellwatch>.CopyTo(CellWatch[], int), CollectionBase<cellwatch>.CopyTo(int, CellWatch[], int, int), CollectionBase<cellwatch>.Exists(Predicate<cellwatch>), CollectionBase<cellwatch>.Find(Predicate<cellwatch>), CollectionBase<cellwatch>.FindAll(Predicate<cellwatch>), CollectionBase<cellwatch>.FindIndex(Predicate<cellwatch>), CollectionBase<cellwatch>.FindIndex(int, Predicate<cellwatch>), CollectionBase<cellwatch>.FindIndex(int, int, Predicate<cellwatch>), CollectionBase<cellwatch>.FindLast(Predicate<cellwatch>), CollectionBase<cellwatch>.FindLastIndex(Predicate<cellwatch>), CollectionBase<cellwatch>.FindLastIndex(int, Predicate<cellwatch>), CollectionBase<cellwatch>.FindLastIndex(int, int, Predicate<cellwatch>), CollectionBase<cellwatch>.IndexOf(CellWatch), CollectionBase<cellwatch>.IndexOf(CellWatch, int), CollectionBase<cellwatch>.IndexOf(CellWatch, int, int), CollectionBase<cellwatch>.LastIndexOf(CellWatch), CollectionBase<cellwatch>.LastIndexOf(CellWatch, int), CollectionBase<cellwatch>.LastIndexOf(CellWatch, int, int), CollectionBase<cellwatch>.GetEnumerator(), CollectionBase<cellwatch>.Clear(), CollectionBase<cellwatch>.RemoveAt(int), CollectionBase<cellwatch>.OnClearComplete(), CollectionBase<cellwatch>.OnClear(), CollectionBase<cellwatch>.Capacity, CollectionBase<cellwatch>.Count, CollectionBase<cellwatch>.InnerList, CollectionBase<cellwatch>.this[int], object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Ví dụ

//Khởi tạo một đối tượng Workbook
Workbook workbook = new Workbook();
// Lấy bảng tính đầu tiên.
Worksheet sheet = workbook.Worksheets[0];
// Thêm mục theo dõi ô vào cửa sổ theo dõi
sheet.CellWatches.Add("B2");
'Khởi tạo một đối tượng Workbook
Dim workbook As Workbook = New Workbook()
'Lấy bảng tính đầu tiên.
Dim sheet as Worksheet = workbook.Worksheets(0);
'Thêm mục theo dõi ô vào cửa sổ theo dõi
sheet.CellWatches.Add("B2")

Các hàm khởi tạo

CellWatchCollection()

public CellWatchCollection()

Các thuộc tính

this[int]

Lấy và thiết lập Aspose.Cells.CellWatch theo chỉ số.

public CellWatch this[int index] { get; }

Giá trị thuộc tính

CellWatch

this[string]

Lấy và thiết lập Aspose.Cells.CellWatch theo tên của ô.

public CellWatch this[string cellName] { get; }

Giá trị thuộc tính

CellWatch

Các phương thức

Add(int, int)

Thêm Aspose.Cells.CellWatch với hàng và cột.

public int Add(int row, int column)

Tham số

row int

Chỉ số hàng.

column int

Chỉ số cột.

Trả về

int

Trả về vị trí của mục này trong bộ sưu tập.

Add(string)

Thêm Aspose.Cells.CellWatch với tên của ô.

public int Add(string cellName)

Tham số

cellName string

Tên của ô.

Trả về

int

 Tiếng Việt