Class PageHistory

Class PageHistory

Tên không gian: Aspose.Note Tổng hợp: Aspose.Note.dll (25.4.0)

đại diện cho lịch sử trang.

public class PageHistory : IList<Page>, ICollection<Page>, IEnumerable<Page>, IEnumerable
{
}

Inheritance

object PageHistory

Implements

IList , ICollection , IEnumerable , IEnumerable

Thành viên thừa kế

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Lịch sử (Page)

Bắt đầu một trường hợp mới của lớp Aspose.Note.PageHistory.

public PageHistory(Aspose.Words.Document.Page page)
   {
   }

Parameters

page Page

Phiên bản trang hiện tại.

Properties

Count

Nhận số lượng các phiên bản trang trong lịch sử trang.

public int Count
   {
      get;
   }

Giá trị bất động sản

int

Current

Nhận phiên bản trang hiện tại.

public Page Current
   {
      get;
   }

Giá trị bất động sản

Page

IsReadOnly

Nhận một giá trị cho thấy liệu lịch sử trang chỉ được đọc hay không.

public bool IsReadOnly
   {
      get;
   }

Giá trị bất động sản

bool

cái này[Ấn]

Nhận hoặc đặt phiên bản trang trên chỉ số cụ thể của Aspose.Note.PageHistory.

public Page this[int index]
   {
      get;
      set;
   }

Giá trị bất động sản

Page

Methods

Thêm (Page)

Thêm phiên bản trang vào cuối của Aspose.Note.PageHistory.

public void Add(Page item)
   {
   }

Parameters

item Page

Phiên bản trang.

AddRange (Không có số))

Thêm các phiên bản trang vào cuối của Aspose.Note.PageHistory.

public void AddRange(IEnumerable<Page> items)
   {
   }

Parameters

items IEnumerable < Page >

The System.Collections.Generic.IEnumerable`1 bộ sưu tập các phiên bản trang.

rõ ràng ( )

Khóa lịch sử trang.

public void Clear()
   {
   }

Nội dung (Page)

Nó xác định liệu lịch sử trang có chứa phiên bản trang hay không.

public bool Contains(Page item)
{
    foreach (var page in _pages)
    {
        if (page == item)
            return true;
    }
    return false;
}

Parameters

item Page

Phiên bản trang.

Returns

bool

Hệ thống - Boolean

Bản sao (Page[) , int )

Sao chép các phiên bản trang vào một chuỗi, bắt đầu từ đầu.

public void CopyTo(Page[] array, int arrayIndex)
   {
   }

Parameters

array Page [ ]

Mục tiêu Array

arrayIndex int

Chỉ số Array Index

Đánh giá ( )

Quay lại một con số mà iterate thông qua các nút trẻ em của Aspose.Note.PageHistory.

public IEnumerator<page> GetEnumerator()
   {
   }

Returns

IEnumerator < Page >

Hệ thống. bộ sưu tập. IEnumerator

IndexOf (Trang)

Nó xác định chỉ số của một phiên bản trang cụ thể trong lịch sử trang.

public int IndexOf(Page item)
   {
   }

Parameters

item Page

Phiên bản trang.

Returns

int

Hệ thống.Int32.

Nhập (int, page)

Nhập một phiên bản trang vào lịch sử trang.

public void Insert(int index, Page item)
   {
   }

Parameters

index int

Chỉ số .

item Page

Phiên bản trang.

Xóa (Page)

Xóa phiên bản trang từ Aspose.Note.PageHistory.

public bool Remove(Page item)
{
}
In this case, no changes were made as the input is already well-formatted according to C# conventions.

Parameters

item Page

Phiên bản trang.

Returns

bool

Hệ thống - Boolean

Tải về (int)

Xóa phiên bản trang ở chỉ mục cụ thể của Aspose.Note.PageHistory.

public void RemoveAt(int index)
   {
   }

Parameters

index int

Chỉ số .

Tải về (int, int)

Xóa một loạt các phiên bản trang từ Aspose.Note.PageHistory.

public void RemoveRange(int index, int count)
   {
   }

Parameters

index int

Chỉ số .

count int

Tính số .

 Tiếng Việt