Tutorial

Getting Started with Macros

Macro Editor

User Interface

Menus and Toolbar

Editing Macro Statements

Expression Editor

Macro Debugging

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Storing persistent data

Using binary data

Sorting objects

Macro menus

Bulleted and numbered lists

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Last updated on: March 19, 2023
Also available as a single HTML file

Onetastic Macro Documentation > How To > Bulleted and numbered lists

Bulleted and Numbered Lists

Paragraph objects can be part of bulleted or numbered lists. To check whether a paragraph is part of a bulleted or numbered list, you can use one of the following properties:

  • isPartOfList (read-only)
  • isPartOfBulletedList
  • isPartOfNumberedList

You can set isPartOfBulletedList or isPartOfNumberedList property to true to create a bulleted or numbered paragraph. Setting them to false will remove the bullet or number.

Bullet Types

Paragraph objects that are part of a bulleted list have the bulletType property indicating what type of bullet they are displaying. Valid bullet type values are given below:

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

Below is an example of how to create bulleted lists:

// Get the first outline in the current page $outline = GetCurrentPage().outlines[0] // Insert a new paragraph $p = InsertObject($outline, "Paragraph", -1) $p.indent = 1 $p.text = "Main Item 1" $p.isPartOfBulletedList = true $p.bulletType = 2 // Insert a new paragraph $p = InsertObject($outline, "Paragraph", -1) $p.indent = 2 $p.text = "Sub Item 1" $p.isPartOfBulletedList = true $p.bulletType = 3 // Insert a new paragraph $p = InsertObject($outline, "Paragraph", -1) $p.indent = 2 $p.text = "Sub Item 2" $p.isPartOfBulletedList = true $p.bulletType = 3 // Insert a new paragraph $p = InsertObject($outline, "Paragraph", -1) $p.indent = 1 $p.text = "Main Item 2" $p.isPartOfBulletedList = true $p.bulletType = 2 // Result will be like this: // ● Main Item 1 // ○ Sub Item 1 // ○ Sub Item 2 // ● Main Item 2

Number Sequences

Paragraph objects that are part of a numbered list have the numberSequence property indicating what type of number sequence they are displaying. Valid number sequence values are given below:

Seq Name Example
English (Expand)
0 Arabic 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
1 Roman Capital I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XVIII, XIX, XX, XXI, XXII, XXIII, XXIV, XXV, XXVI, XXVII, XXVIII, XXIX, XXX
2 Roman Small i, ii, iii, iv, v, vi, vii, viii, ix, x, xi, xii, xiii, xiv, xv, xvi, xvii, xviii, xix, xx, xxi, xxii, xxiii, xxiv, xxv, xxvi, xxvii, xxviii, xxix, xxx
3 Letter Capital A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, AA, BB, CC, DD
4 Letter Small a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, aa, bb, cc, dd
5 Ordinal 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, 18th, 19th, 20th, 21st, 22nd, 23rd, 24th, 25th, 26th, 27th, 28th, 29th, 30th
6 Cardinal Text One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Eleven, Twelve, Thirteen, Fourteen, Fifteen, Sixteen, Seventeen, Eighteen, Nineteen, Twenty, Twenty-one, Twenty-two, Twenty-three, Twenty-four, Twenty-five, Twenty-six, Twenty-seven, Twenty-eight, Twenty-nine, Thirty
7 Ordinal Text First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth, Eleventh, Twelfth, Thirteenth, Fourteenth, Fifteenth, Sixteenth, Seventeenth, Eighteenth, Nineteenth, Twentieth, Twenty-first, Twenty-second, Twenty-third, Twenty-fourth, Twenty-fifth, Twenty-sixth, Twenty-seventh, Twenty-eighth, Twenty-ninth, Thirtieth
8 Hexadecimal 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D, 1E
9 Chicago Manual of Style *, †, ‡, §, **, ††, ‡‡, §§, ***, †††, ‡‡‡, §§§, ****, ††††, ‡‡‡‡, §§§§, *****, †††††, ‡‡‡‡‡, §§§§§, ******, ††††††, ‡‡‡‡‡‡, §§§§§§, *******, †††††††, ‡‡‡‡‡‡‡, §§§§§§§, ********, ††††††††
22 Decimal Leading Zero 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
57 Number in Dash - 1 -, - 2 -, - 3 -, - 4 -, - 5 -, - 6 -, - 7 -, - 8 -, - 9 -, - 10 -, - 11 -, - 12 -, - 13 -, - 14 -, - 15 -, - 16 -, - 17 -, - 18 -, - 19 -, - 20 -, - 21 -, - 22 -, - 23 -, - 24 -, - 25 -, - 26 -, - 27 -, - 28 -, - 29 -, - 30 -
Japanese (Expand)
10 Ideograph Digital 一, 二, 三, 四, 五, 六, 七, 八, 九, 一〇, 一一, 一二, 一三, 一四, 一五, 一六, 一七, 一八, 一九, 二〇, 二一, 二二, 二三, 二四, 二五, 二六, 二七, 二八, 二九, 三〇
11 Japanese Counting 一, 二, 三, 四, 五, 六, 七, 八, 九, 十, 十一, 十二, 十三, 十四, 十五, 十六, 十七, 十八, 十九, 二十, 二十一, 二十二, 二十三, 二十四, 二十五, 二十六, 二十七, 二十八, 二十九, 三十
12 Aiueo ア, イ, ウ, エ, オ, カ, キ, ク, ケ, コ, サ, シ, ス, セ, ソ, タ, チ, ツ, テ, ト, ナ, ニ, ヌ, ネ, ノ, ハ, ヒ, フ, ヘ, ホ
13 Iroha イ, ロ, ハ, ニ, ホ, ヘ, ト, チ, リ, ヌ, ル, ヲ, ワ, カ, ヨ, タ, レ, ソ, ツ, ネ, ナ, ラ, ム, ウ, ヰ, ノ, オ, ク, ヤ, マ
14 Decimal Full Width 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
15 Decimal Half Width 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
16 Japanese Legal 壱, 弐, 参, 四, 伍, 六, 七, 八, 九, 壱拾, 壱拾壱, 壱拾弐, 壱拾参, 壱拾四, 壱拾伍, 壱拾六, 壱拾七, 壱拾八, 壱拾九, 弐拾, 弐拾壱, 弐拾弐, 弐拾参, 弐拾四, 弐拾伍, 弐拾六, 弐拾七, 弐拾八, 弐拾九, 参拾
17 Japanese Digital Ten Thousand 一, 二, 三, 四, 五, 六, 七, 八, 九, 一〇, 一一, 一二, 一三, 一四, 一五, 一六, 一七, 一八, 一九, 二〇, 二一, 二二, 二三, 二四, 二五, 二六, 二七, 二八, 二九, 三〇
18 Decimal Enclosed Circle ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩, ⑪, ⑫, ⑬, ⑭, ⑮, ⑯, ⑰, ⑱, ⑲, ⑳, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
19 Decimal Full Width 2 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
20 Aiueo Full Width ア, イ, ウ, エ, オ, カ, キ, ク, ケ, コ, サ, シ, ス, セ, ソ, タ, チ, ツ, テ, ト, ナ, ニ, ヌ, ネ, ノ, ハ, ヒ, フ, ヘ, ホ
21 Iroha Full Width イ, ロ, ハ, ニ, ホ, ヘ, ト, チ, リ, ヌ, ル, ヲ, ワ, カ, ヨ, タ, レ, ソ, ツ, ネ, ナ, ラ, ム, ウ, ヰ, ノ, オ, ク, ヤ, マ
Chinese (Expand)
26 Decimal Enclosed Full stop ⒈, ⒉, ⒊, ⒋, ⒌, ⒍, ⒎, ⒏, ⒐, ⒑, ⒒, ⒓, ⒔, ⒕, ⒖, ⒗, ⒘, ⒙, ⒚, ⒛, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
27 Decimal Enclosed Parenthesis ⑴, ⑵, ⑶, ⑷, ⑸, ⑹, ⑺, ⑻, ⑼, ⑽, ⑾, ⑿, ⒀, ⒁, ⒂, ⒃, ⒄, ⒅, ⒆, ⒇, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
28 Decimal Enclosed Circle ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
29 Ideograph Enclosed Circle ㈠, ㈡, ㈢, ㈣, ㈤, ㈥, ㈦, ㈧, ㈨, ㈩, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
30 Ideograph Traditional 甲, 乙, 丙, 丁, 戊, 己, 庚, 辛, 壬, 癸, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
31 Ideograph Zodiac 子, 丑, 寅, 卯, 辰, 巳, 午, 未, 申, 酉, 戍, 亥, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
32 Ideograph Zodiac Traditional 甲子, 乙丑, 丙寅, 丁卯, 戊辰, 己巳, 庚午, 辛未, 壬申, 癸酉, 甲戍, 乙亥, 丙子, 丁丑, 戊寅, 己卯, 庚辰, 辛巳, 壬午, 癸未, 甲申, 乙酉, 丙戍, 丁亥, 戊子, 己丑, 庚寅, 辛卯, 壬辰, 癸巳
33 Taiwanese Counting 一, 二, 三, 四, 五, 六, 七, 八, 九, 十, 十一, 十二, 十三, 十四, 十五, 十六, 十七, 十八, 十九, 二十, 二十一, 二十二, 二十三, 二十四, 二十五, 二十六, 二十七, 二十八, 二十九, 三十
34 Ideograph Legal Traditional 壹, 貳, 參, 肆, 伍, 陸, 柒, 捌, 玖, 壹拾, 壹拾壹, 壹拾貳, 壹拾參, 壹拾肆, 壹拾伍, 壹拾陸, 壹拾柒, 壹拾捌, 壹拾玖, 貳拾, 貳拾壹, 貳拾貳, 貳拾參, 貳拾肆, 貳拾伍, 貳拾陸, 貳拾柒, 貳拾捌, 貳拾玖, 參拾
35 Taiwanese Counting Thousand 一, 二, 三, 四, 五, 六, 七, 八, 九, 十, 十一, 十二, 十三, 十四, 十五, 十六, 十七, 十八, 十九, 二十, 二十一, 二十二, 二十三, 二十四, 二十五, 二十六, 二十七, 二十八, 二十九, 三十
36 Taiwanese Digital 一, 二, 三, 四, 五, 六, 七, 八, 九, 一○, 一一, 一二, 一三, 一四, 一五, 一六, 一七, 一八, 一九, 二○, 二一, 二二, 二三, 二四, 二五, 二六, 二七, 二八, 二九, 三○
37 Chinese Counting 一, 二, 三, 四, 五, 六, 七, 八, 九, 十, 十一, 十二, 十三, 十四, 十五, 十六, 十七, 十八, 十九, 二十, 二十一, 二十二, 二十三, 二十四, 二十五, 二十六, 二十七, 二十八, 二十九, 三十
38 Chinese Legal Simplified 壹, 贰, 叁, 肆, 伍, 陆, 柒, 捌, 玖, 壹拾, 壹拾壹, 壹拾贰, 壹拾叁, 壹拾肆, 壹拾伍, 壹拾陆, 壹拾柒, 壹拾捌, 壹拾玖, 贰拾, 贰拾壹, 贰拾贰, 贰拾叁, 贰拾肆, 贰拾伍, 贰拾陆, 贰拾柒, 贰拾捌, 贰拾玖, 叁拾
39 Chinese Counting Thousand 一, 二, 三, 四, 五, 六, 七, 八, 九, 十, 十一, 十二, 十三, 十四, 十五, 十六, 十七, 十八, 十九, 二十, 二十一, 二十二, 二十三, 二十四, 二十五, 二十六, 二十七, 二十八, 二十九, 三十
40 Decimal 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
Korean (Expand)
24 Ganada

가, 나, 다, 라, 마, 바, 사, 아, 자, 차, 카, 타, 파, 하, 가, 나, 다, 라, 마, 바, 사, 아, 자, 차, 카, 타, 파, 하, 가, 나

25 Chosung

ㄱ, ㄴ, ㄷ, ㄹ, ㅁ, ㅂ, ㅅ, ㅇ, ㅈ, ㅊ, ㅋ, ㅌ, ㅍ, ㅎ, ㄱ, ㄴ, ㄷ, ㄹ, ㅁ, ㅂ, ㅅ, ㅇ, ㅈ, ㅊ, ㅋ, ㅌ, ㅍ, ㅎ, ㄱ, ㄴ

41 Korean Digital

일, 이, 삼, 사, 오, 육, 칠, 팔, 구, 일영, 일일, 일이, 일삼, 일사, 일오, 일육, 일칠, 일팔, 일구, 이영, 이일, 이이, 이삼, 이사, 이오, 이육, 이칠, 이팔, 이구, 삼영

42 Korean Counting

일, 이, 삼, 사, 오, 육, 칠, 팔, 구, 십, 십일, 십이, 십삼, 십사, 십오, 십육, 십칠, 십팔, 십구, 이십, 이십일, 이십이, 이십삼, 이십사, 이십오, 이십육, 이십칠, 이십팔, 이십구, 삼십

43 Korean Legal

하나, 둘, 셋, 넷, 다섯, 여섯, 일곱, 여덟, 아홉, 열, 열하나, 열둘, 열셋, 열넷, 열다섯, 열여섯, 열일곱, 열여덟, 열아홉, 스물, 스물하나, 스물둘, 스물셋, 스물넷, 스물다섯, 스물여섯, 스물일곱, 스물여덟, 스물아홉, 서른

44 Korean Digital 2

一, 二, 三, 四, 五, 六, 七, 八, 九, 一零, 一一, 一二, 一三, 一四, 一五, 一六, 一七, 一八, 一九, 二零, 二一, 二二, 二三, 二四, 二五, 二六, 二七, 二八, 二九, 三零

Hebrew (Expand)
45 Hebrew 1 א, ב, ג, ד, ה, ו, ז, ח, ט, י, יא, יב, יג, יד, טו, טז, יז, יח, יט, כ, כא, כב, כג, כד, כה, כו, כז, כח, כט, ל
47 Hebrew 2 א, ב, ג, ד, ה, ו, ז, ח, ט, י, כ, ל, מ, נ, ס, ע, פ, צ, ק, ר, ש, ת, תא, תב, תג, תד, תה, תו, תז, תח
Arabic (Expand)
46 Arabic Letters أ‌, ب‌, ت‌, ث‌, ج‌, ح‌, خ‌, د‌, ذ‌, ر‌, ز‌, س‌, ش‌, ص‌, ض‌, ط‌, ظ‌, ع‌, غ‌, ف‌, ق‌, ك‌, ل‌, م‌, ن‌, ه‌, و‌, ي‌, أ‌أ‌, ب‌ب‌
48 Arabic Abjad ‌أ, ‌ب, ‌ج, ‌د, ‌ه, ‌و, ‌ز, ‌ح, ‌ط, ‌ي, ‌ك, ‌ل, ‌م, ‌ن, ‌س, ‌ع, ‌ف, ‌ص, ‌ق, ‌ر, ‌ش, ‌ت, ‌ث, ‌خ, ‌ذ, ‌ض, ‌ظ, ‌غ, ‌أ‌أ, ‌ب‌ب
Hindi (Expand)
49 Hindi Vowels , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
50 Hindi Consonants , , , , , , , , , , , , , , , , अं, अः, अअ, आआ, इइ, ईई, उउ, ऊऊ, ऋऋ, ऌऌ, ऍऍ, ऎऎ, एए, ऐऐ
51 Hindi Numbers १, २, ३, ४, ५, ६, ७, ८, ९, १०, ११, १२, १३, १४, १५, १६, १७, १८, १९, २०, २१, २२, २३, २४, २५, २६, २७, २८, २९, ३०
52 Hindi Counting एक, दो, तीन, चार, पाँच, छः, सात, आठ, नौ, दस, ग्यारह, बारह, तेरह, चौदह, पंद्रह, सोलह, सत्रह, अठ्ठारह, उन्नीस, बीस, इक्कीस, बाईस, तेईस, चौबीस, पच्चीस, छब्बीस, सत्ताईस, अठ्ठाईस, उन्तीस, तीस
Thai (Expand)
53 Thai Letters , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
54 Thai Numbers ๑, ๒, ๓, ๔, ๕, ๖, ๗, ๘, ๙, ๑๐, ๑๑, ๑๒, ๑๓, ๑๔, ๑๕, ๑๖, ๑๗, ๑๘, ๑๙, ๒๐, ๒๑, ๒๒, ๒๓, ๒๔, ๒๕, ๒๖, ๒๗, ๒๘, ๒๙, ๓๐
55 Thai Counting หนึ่ง, สอง, สาม, สี่, ห้า, หก, เจ็ด, แปด, เก้า, สิบ, สิบเอ็ด, สิบสอง, สิบสาม, สิบสี่, สิบห้า, สิบหก, สิบเจ็ด, สิบแปด, สิบเก้า, ยี่สิบ, ยี่สิบเอ็ด, ยี่สิบสอง, ยี่สิบสาม, ยี่สิบสี่, ยี่สิบห้า, ยี่สิบหก, ยี่สิบเจ็ด, ยี่สิบแปด, ยี่สิบเก้า, สามสิบ
Vietnamese (Expand)
56 Vietnamese Counting một, hai, ba, bốn, năm, sáu, bảy, tám, chín, mười, mười một, mười hai, mười ba, mười bốn, mười lăm, mười sáu, mười bảy, mười tám, mười chín, hai mươi, hai mươi mốt, hai mươi hai, hai mươi ba, hai mươi bốn, hai mươi lăm, hai mươi sáu, hai mươi bảy, hai mươi tám, hai mươi chín, ba mươi
Russian (Expand)
58 Russian Small а, б, в, г, д, е, ж, з, и, к, л, м, н, о, п, р, с, т, у, ф, х, ц, ч, ш, щ, ы, э, ю, я, аа
59 Russian Capital А, Б, В, Г, Д, Е, Ж, З, И, К, Л, М, Н, О, П, Р, С, Т, У, Ф, Х, Ц, Ч, Ш, Щ, Ы, Э, Ю, Я, АА
Greek (Expand)
60 Greek Small α, β, γ, δ, ε, στ, ζ, η, θ, ι, ια, ιβ, ιγ, ιδ, ιε, ιστ, ιζ, ιη, ιθ, κ, κα, κβ, κγ, κδ, κε, κστ, κζ, κη, κθ, λ
61 Greek Capital Α, Β, Γ, Δ, Ε, ΣΤ, Ζ, Η, Θ, Ι, ΙΑ, ΙΒ, ΙΓ, ΙΔ, ΙΕ, ΙΣΤ, ΙΖ, ΙΗ, ΙΘ, Κ, ΚΑ, ΚΒ, ΚΓ, ΚΔ, ΚΕ, ΚΣΤ, ΚΖ, ΚΗ, ΚΘ, Λ

Number Format

In addition to the different number sequences you can get by setting the numberSequence property, you can also customize numbered lists by setting a format through the numberFormat property. This property is a string that contains "##" for the number sequence and any other characters to be displayed in the numbered list. The default value for numberFormat property is "##.". Below are some examples:

##.1., 2., 3.
##)1), 2), 3)
(##)(1), (2), (3)
##:1:, 2:, 3:
Item # ##Item # 1, Item # 2, Item # 3

For a paragraph in a numbered list, the resulting number text from the specified number format can be obtained by checking the read-only property numberText.

Reference

Statements

For

ForEach

If

Else If

Else

Switch

Case

Default

While

Expression

Comment

Break

Continue

Return

Hierarchy Objects

NotebookRoot

Notebook

SectionGroup

Section

Page

Page Objects

Title

Outline

Table

Column

Row

Cell

Paragraph

Text

Image

EmbeddedFile

Tag

Other Objects

DialogBox

MacroMenu

Window

Functions

Array Functions

Color Functions

Data Store Functions

Date/Time Functions

Dialog Box Functions

Macro Execution Functions

Macro Menu Functions

Object Functions

String Functions

Window Functions