ShapeCollection

ShapeCollection

Genel Bakış

ShapeCollection NET için FOSS’de bir sınıf. Mirasçılar: IShapeCollection.

Bir slayt veya grup şekline ait IShape nesnelerinin düzenli ve değişken bir koleksiyonunu temsil eder.

Bu sınıf, .NET programlarında ShapeCollection nesnelerle çalışmak için 22 yöntem sağlar. Kullanılabilir yöntemler şunlardır: AddAutoShape, AddConnector, AddPictureFrame, AddTable, Clear, GetEnumerator, IndexOf, InsertAutoShape, InsertConnector, InsertPictureFrame, InsertTable, Remove, ve 4 ek yöntem. Tüm kamu üyeleri, .NET paketi için Aspose.Slides FOSS’u yükledikten sonra herhangi bir NET uygulamasına erişilebilir. Özellikleri: AsICollection, AsIEnumerable, Count, ParentGroup.

Özellikler

Adı:Tip:AccessAçıklama:
ParentGroupIGroupShape?Oku .Üst grubu alır.
AsICollectionIList<IShape>Oku .as i koleksiyonunu alır.
AsIEnumerableIEnumerable<IShape>Oku .IEnumerable olarak alır.
CountintOku .Sayacı alır.

Yöntemler

SignatureAçıklama:
ShapeCollection()ShapeCollection sınıfının yeni bir örneğini başlatır.
ToArray()StartIndex’ten başlayan bir alt dizi şekil gönderir.
ToArray(startIndex: int, count: int)ToArray{startIndex, count) bu ShapeCollection örneğinde çağrılır.
Reorder(index: int, shape: IShape)Verilen indeksten başlamak için birden fazla şekil hareket eder .
Reorder(index: int, shapes: IShape[])Bu ShapeCollection örneğinde Reorder ((index, shapes) çağrısı.
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float)İstenen bir AutoShape oluşturur. ShapeType belirtilen koordinatlarda ve şekil örneğini iade eder
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)AddAutoShape ((shapeType, x, y, genişlik, yükseklik) bu ShapeCollection örneğinde çağrılar.
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float)Bir şablondan seçeneğe göre indeksde yeni bir AutoShape ekler.
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)InsertAutoShape ((index, shapeType, x, y, width, height, createFromTemplate) çağrısı bu ShapeCollection örneğinde.
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float)Bir bağlantı ekler, seçenek olarak bir şablondan
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)AddConnector ((shapeType, x, y, genişlik, yükseklik) bu ShapeCollection örneğinde çağrılar.
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float)Verilen indeksde bir bağlantı ekler .
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)InsertConnector ((index, shapeType, x, y, width, height, createFromTemplate) çağrısı bu ShapeCollection örneğinde.
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage)Belirtilen görüntü ile bir resim çerçevesini ekler .
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage)Belirtilen görüntü ile indeksde bir resim çerçevesini ekler .
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[])Belirtilen sütun genişlikleri ve satır yüksekliği ile konumunda bir tablo ekler .
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[])Verilen boyutlu bir tabloya indeks ekler.
IndexOf(shape: IShape)Belirtilen şeklin sıfır tabanlı indeksi iade eder.
RemoveAt(index: int)Verilen indeksdeki şekli kaldırır .
Remove(shape: IShape)Koleksiyonun belirtilen şeklini kaldırır .
Clear()Bu ShapeCollection örneğinde Clear’ı çağırıyor.
GetEnumerator()Şekilleri tekrarlamak için bir sayıcı gönderir.

Ayrıca bakınız:

 Türkçe