의견 보내기
Class Bookmark
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
북마크
북마크를 나타내는 객체입니다.
// Insert a bookmark at the cursor position and log its ID.
var doc = DocumentApp.getActiveDocument();
var cursor = doc.getCursor();
var bookmark = doc.addBookmark(cursor);
Logger.log(bookmark.getId());
자세한 문서
getId()
Bookmark
의 ID를 가져옵니다. ID는 문서 내에서 고유합니다.
리턴
String
: Bookmark
의 ID로, 문서 내에서 고유합니다.
승인
이 방법을 사용하는 스크립트는 다음 범위 중 하나 이상을 승인해야 합니다.
https://www.googleapis.com/auth/documents.currentonly
https://www.googleapis.com/auth/documents
getPosition()
Document
내에서 Bookmark
의 Position
를 가져옵니다. Position
는 스크립트가 문서 구조를 변경하더라도 Bookmark
가 삭제되지 않는 한 정확합니다.
리턴
Position
: Bookmark
의 위치
승인
이 방법을 사용하는 스크립트는 다음 범위 중 하나 이상을 승인해야 합니다.
https://www.googleapis.com/auth/documents.currentonly
https://www.googleapis.com/auth/documents
remove()
Bookmark
를 삭제합니다. 이미 삭제된 Bookmark
에서 이 메서드를 호출해도 효과가 없습니다.
승인
이 방법을 사용하는 스크립트는 다음 범위 중 하나 이상을 승인해야 합니다.
https://www.googleapis.com/auth/documents.currentonly
https://www.googleapis.com/auth/documents
의견 보내기
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스 에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스 에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책 을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-02(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]
의견을 전달하고 싶나요?