Class CommentCollection

Class CommentCollection

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

Aspose.Cells.Comment nesnelerinin bir koleksiyonunu kapsar.

public class CommentCollection : CollectionBase<comment>, IList<comment>, ICollection<comment>, IEnumerable<comment>, ICollection, IEnumerable

Miras

objectCollectionBase<comment>CommentCollection

Uygulamalar

IList<comment>, ICollection<comment>, IEnumerable<comment>, ICollection, IEnumerable

Miras Alınan Üyeler

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

Örnekler

Workbook workbook = new Workbook();

CommentCollection comments = workbook.Worksheets[0].Comments;

//işinizi yapın
Dim workbook as Workbook = new Workbook()

Dim comments as CommentCollection = workbook.Worksheets(0).Comments

Özellikler

this[int]

Belirtilen indeksteki Aspose.Cells.Comment öğesini alır.

public Comment this[int index] { get; }

Özellik Değeri

Comment

Örnekler

Comment comment3 = comments[0];
comment3.Note = "Üç not.";

this[string]

Belirtilen hücredeki Aspose.Cells.Comment öğesini alır.

public Comment this[string cellName] { get; }

Özellik Değeri

Comment

Örnekler

Comment comment4 = comments["B2"];
comment4.Note = "Dört not.";

this[int, int]

Belirtilen satır indeksi ve sütun indeksindeki Aspose.Cells.Comment öğesini alır.

public Comment this[int row, int column] { get; }

Özellik Değeri

Comment

Örnekler

Comment comment5 = comments[1,1];
comment5.Note = "Beş not.";

Metotlar

Add(int, int)

Koleksiyona bir yorum ekler.

public int Add(int row, int column)

Parametreler

row int

Hücre satır indeksi.

column int

Hücre sütun indeksi.

Dönüş Değeri

int

Aspose.Cells.Comment nesnesinin indeksi.

Örnekler

int commentIndex1 = comments.Add(0, 0);
Comment comment1 = comments[commentIndex1];
comment1.Note = "Birinci not.";
comment1.Font.Name = "Times New Roman";

Add(string)

Koleksiyona bir yorum ekler.

public int Add(string cellName)

Parametreler

cellName string

Hücre adı.

Dönüş Değeri

int

Aspose.Cells.Comment nesnesinin indeksi.

Örnekler

int commentIndex2 = comments.Add("B2");
Comment comment2 = comments[commentIndex2];
comment2.Note = "İkinci not.";
comment2.Font.Name = "Times New Roman";

AddThreadedComment(int, int, string, ThreadedCommentAuthor)

Bir bağlantılı yorum ekler.

public int AddThreadedComment(int row, int column, string text, ThreadedCommentAuthor author)

Parametreler

row int

Hücre satır indeksi.

column int

Hücre sütun indeksi.

text string

Yorumun metni

author ThreadedCommentAuthor

Bu bağlantılı yorumun kullanıcısı.

Dönüş Değeri

int

Aspose.Cells.ThreadedComment nesnesinin indeksi.

AddThreadedComment(string, string, ThreadedCommentAuthor)

Bir bağlantılı yorum ekler.

public int AddThreadedComment(string cellName, string text, ThreadedCommentAuthor author)

Parametreler

cellName string

Hücrenin adı.

text string

Yorumun metni

author ThreadedCommentAuthor

Bu bağlantılı yorumun kullanıcısı.

Dönüş Değeri

int

Aspose.Cells.ThreadedComment nesnesinin indeksi.

Clear()

Tüm yorumları kaldırır;

public void Clear()

Örnekler

comments.Clear();

GetThreadedComments(int, int)

Satır ve sütun indeksine göre bağlantılı yorumları alır.

public ThreadedCommentCollection GetThreadedComments(int row, int column)

Parametreler

row int

Satır indeksi.

column int

Sütun indeksi.

Dönüş Değeri

ThreadedCommentCollection

Örnekler

ThreadedCommentCollection threadedComments1 = comments.GetThreadedComments(1, 1);
for (int i = 0; i &lt; threadedComments1.Count; ++i)
{
    ThreadedComment tc = threadedComments1[i];
    string note = tc.Notes;
}

GetThreadedComments(string)

Hücre adına göre bağlantılı yorumları alır.

public ThreadedCommentCollection GetThreadedComments(string cellName)

Parametreler

cellName string

Hücrenin adı.

Dönüş Değeri

ThreadedCommentCollection

Örnekler

ThreadedCommentCollection threadedComments2 = comments.GetThreadedComments("B2");
for (int i = 0; i &lt; threadedComments2.Count; ++i)
{
    ThreadedComment tc = threadedComments2[i];
    string note = tc.Notes;
}

RemoveAt(string)

Belirli bir hücrenin yorumunu kaldırır.

public void RemoveAt(string cellName)

Parametreler

cellName string

Yorum içeren hücrenin adı.

Örnekler

comments.RemoveAt("B2");

RemoveAt(int, int)

Belirli bir hücrenin yorumunu kaldırır.

public void RemoveAt(int row, int column)

Parametreler

row int

Satır indeksi.

column int

Sütun indeksi.

Örnekler

comments.RemoveAt(1,1);
 Türkçe