HasSameTemplate

List.HasSameTemplate method

Mevcut liste ve verilen liste aynı şablondan oluşturulmuşsa doğru değerini döndürür.

public bool HasSameTemplate(List other)

Örnekler

Aynı ListDefId’ye sahip listelerin nasıl tanımlanacağını gösterir.

Document doc = new Document(MyDir + "Different lists.docx");

Assert.True(doc.Lists[0].HasSameTemplate(doc.Lists[1]));
Assert.False(doc.Lists[1].HasSameTemplate(doc.Lists[2]));

Ayrıca bakınız