ParagraphCollection

ParagraphCollection

Overview

ParagraphCollection là một lớp trong Aspose.Slides FOSS cho Java. Dòng thừa kế từ: BaseCollection<IParagraph>, IParagraphCollection, ISlideComponent.

Nó đại diện cho một bộ sưu tập các đoạn.

Khóa học này cung cấp 21 phương pháp để làm việc với các đối tượng ParagraphCollection trong các chương trình Java. Các phương pháp có sẵn bao gồm: ParagraphCollection, add, asIEnumerable, asIPresentationComponent, asISlideComponent, clear, contains, count, get, getParagraphs, getPresentation, getSlide,+ 8 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Java nào sau khi cài đặt Aspose.Slides FOSS cho gói Java. Tài sản : paragraphs, presentation, readOnly, slide.

Properties

NameTypeAccessDescription
paragraphsList<IParagraph>ReadXây dựng và trả về danh sách các đoạn.
readOnlybooleanReadChỉ có đọc được.
slideIBaseSlideReadGửi slide.
presentationIPresentationReadNhận được trình bày.

Methods

SignatureDescription
ParagraphCollection()tạo ra một cái trống ParagraphCollection.
ParagraphCollection(paragraphs: List<IParagraph>)Tạo ParagraphCollection với các đoạn ban đầu.
initInternal(txbodyElement: Element, slidePart: Object, parentSlide: IBaseSlide)ParagraphCollectionLập đầu bộ sưu tập này từ một phần tử văn bản-tác phẩm OOXML.
getParagraphs()List<IParagraph>Xây dựng và trả về danh sách các đoạn.
get(index: int)IParagraph
size()int
count()intTrả lại số đoạn (các kích thước khác nhau)
isReadOnly()booleanTrở lại đúng nếu đọc chỉ được thiết lập.
asISlideComponent()ISlideComponentQuay lại bộ sưu tập như một ISlideComponent
asIEnumerable()Iterable<IParagraph>Lại trả lại một Iterable trên các đoạn
asIPresentationComponent()IPresentationComponentQuay lại bộ sưu tập như một IPresentationComponent
getSlide()IBaseSlideTrở lại slide.
getPresentation()IPresentationTrở lại bản trình bày.
add(value: IParagraph)Thêm một đoạn đến cuối bộ sưu tập
insert(index: int, value: IParagraph)
indexOf(item: IParagraph)intTrả lại chỉ số của đoạn đó hoặc -1 nếu không có
contains(item: IParagraph)booleanTrả lại đúng nếu bộ sưu tập bao gồm các đoạn cụ thể
clear()
removeAt(index: int)Xóa đoạn ở chỉ số đã được cung cấp
remove(item: IParagraph)booleanXóa đoạn cụ thể và trả về trạng thái thành công
iterator()Iterator<IParagraph>- Cung cấp một iterator trên các đoạn

See Also

 Tiếng Việt