Class PageHistory

Class PageHistory

Namespace: Aspose.Note
Assembly: Aspose.Note.dll (24.12.0)

Represents the page history.

public class PageHistory : IList<page>, ICollection<page>, IEnumerable<page>, IEnumerable

Inheritance

objectPageHistory

Implements

IList<page>, ICollection<page>, IEnumerable<page>, IEnumerable

Inherited Members

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

Constructors

PageHistory(Page)

Initializes a new instance of the Aspose.Note.PageHistory class.

public PageHistory(Page page)

Parameters

page Page

The current page version.

Properties

Count

Gets the count of the page versions in the page history.

public int Count { get; }

Property Value

int

Current

Gets the current page version.

public Page Current { get; }

Property Value

Page

IsReadOnly

Gets a value indicating whether the page history is read only.

public bool IsReadOnly { get; }

Property Value

bool

this[int]

Gets or sets the page version at the specified index of the Aspose.Note.PageHistory.

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

Property Value

Page

Methods

Add(Page)

Adds the page version to the end of the Aspose.Note.PageHistory.

public void Add(Page item)

Parameters

item Page

The page version.

AddRange(IEnumerable<page>)

Adds the page versions to the end of the Aspose.Note.PageHistory.

public void AddRange(IEnumerable<page> items)

Parameters

items IEnumerable<Page&gt;

The System.Collections.Generic.IEnumerable`1 collection of page versions.

Clear()

Clears the page history.

public void Clear()

Contains(Page)

Determines whether the page history contains the page version.

public bool Contains(Page item)

Parameters

item Page

The page version.

Returns

bool

The System.Boolean.

CopyTo(Page[], int)

Copies the page versions to an array, starting at the beginning.

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

Parameters

array Page[]

The target array.

arrayIndex int

The array index.

GetEnumerator()

Returns an enumerator that iterates through child nodes of the Aspose.Note.PageHistory.

public IEnumerator<page> GetEnumerator()

Returns

IEnumerator<Page&gt;

The System.Collections.IEnumerator.

IndexOf(Page)

Determines the index of a specific page version in the page history.

public int IndexOf(Page item)

Parameters

item Page

The page version.

Returns

int

The System.Int32.

Insert(int, Page)

Inserts a page version into the page history.

public void Insert(int index, Page item)

Parameters

index int

The index.

item Page

The page version.

Remove(Page)

Removes the page version from the Aspose.Note.PageHistory.

public bool Remove(Page item)

Parameters

item Page

The page version.

Returns

bool

The System.Boolean.

RemoveAt(int)

Removes the page version at the specified index of the Aspose.Note.PageHistory.

public void RemoveAt(int index)

Parameters

index int

The index.

RemoveRange(int, int)

Removes a range of the page versions from the Aspose.Note.PageHistory.

public void RemoveRange(int index, int count)

Parameters

index int

The index.

count int

The count. </page></page></page></page>