OutlineItemCollection

OutlineItemCollection

개요

OutlineItemCollection은(는) Go용 Aspose.PDF FOSS에 포함된 타입입니다.

OutlineItemCollection은(는) 개요 항목 및 그 자식들의 컬렉션을 나타냅니다.

이 타입은 Go 프로그램에서 OutlineItemCollection 객체를 다루기 위한 23개의 메서드를 제공합니다. 사용 가능한 메서드에는 Action, Add, All, At, Bold, Color, Count, Destination, Document, Insert, IsExpanded, Italic 및 추가 11개의 메서드가 포함됩니다. Aspose.PDF FOSS for Go 패키지를 설치하면 모든 공개 멤버에 Go 애플리케이션에서 접근할 수 있습니다.

메서드

시그니처설명
Document() → *DocumentDocument는 이 컬렉션이 바인딩된 문서를 반환합니다.
Parent() → *OutlineItemCollectionParent는 부모 항목을 반환하며, 루트 컬렉션의 경우 nil을 반환합니다.
Count() → intCount는 직접 자식의 수를 반환합니다 (placeholder until Task 5 adds the rest of the collection API).
Title() → stringTitle은 북마크 텍스트를 반환합니다.
SetTitle(s: string)SetTitle은 북마크 텍스트를 교체합니다.
Bold() → boolBold는 outline item dict의 /F 비트 2에 해당합니다.
SetBold(b: bool)굵게 표시 값을 설정합니다.
Italic() → boolItalic은 /F 비트 1에 해당합니다.
SetItalic(b: bool)기울임 값을 설정합니다.
Color() → *ColorColor는 RGB 레이블 색상을 반환하며, /C가 없을 경우 nil을 반환합니다(기본값은 검정색).
SetColor(c: *Color)색상 값을 설정합니다.
IsExpanded() → boolIsExpanded은(는) 뷰어의 초기 확장/축소 상태를 제어합니다.
SetIsExpanded(b: bool)확장 여부 값을 설정합니다.
Action() → ActionAction은 /A를 통해 연결된 동작을 반환합니다.
SetAction(a: Action)SetAction은 /A 동작을 설정합니다.
Destination() → DestinationDestination은 /Dest를 통해 명시적인 뷰 대상지를 반환하며, 없을 경우 nil를 반환합니다.
SetDestination(d: Destination)SetDestination은 /Dest 항목을 설정합니다.
Add(child: *OutlineItemCollection) → errorAdd는 child를 이 항목의 마지막 자식으로 추가합니다.
Insert(index: int, child: *OutlineItemCollection) → errorInsert는 child를 이 항목의 자식들 중 지정된 0부터 시작하는 인덱스에 삽입합니다.
Remove(child: *OutlineItemCollection) → boolRemove는 child가 직접적인 자식인 경우 이를 분리합니다.
RemoveAt(index: int) → errorRemoveAt는 지정된 인덱스의 child를 분리합니다.
At(index: int) → *OutlineItemCollectionAt는 지정된 0 기반 인덱스에 해당하는 자식을 반환하며, 범위를 벗어나면 nil을 반환합니다.
All() → []*OutlineItemCollectionAll은 직접 자식들의 스냅샷 슬라이스를 반환합니다.

참조

 한국어