You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The first type of range edge selection selects the cell at the furthest edge of the current used range, in the directions up or left. This action matches the result of using the Ctrl+Arrow key keyboard shortcut while a range is selected.</p>
192
+
<p>The first type of range edge selection selects the cell at the furthest edge of the current used range, in the directions up or left. This action matches the result of using the <kbd>Ctrl</kbd>+<kbd>Arrow key</kbd> keyboard shortcut while a range is selected.</p>
<span class="ms-Button-label">Go to left edge of used range</span>
195
195
</button>
196
196
<button id="get-range-edge-up" class="ms-Button">
197
197
<span class="ms-Button-label">Go to top edge of used range</span>
198
198
</button>
199
199
<br>
200
-
<p>The second type of range edge selection selects all the cells from the currently selected range to the furthest edge of the used range, in the directions right or down. This action matches the result of using the Ctrl+Shift+Arrow key keyboard shortcut while a range is selected.</p>
200
+
<p>The second type of range edge selection selects all the cells from the currently selected range to the furthest edge of the used range, in the directions right or down. This action matches the result of using the <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Arrow key</kbd> keyboard shortcut while a range is selected.</p>
Copy file name to clipboardexpand all lines: samples/outlook/90-other-item-apis/get-message-properties.yaml
+1-1
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ template:
49
49
<h3>Try it out</h3>
50
50
<ol>
51
51
<li><p>Turn on the Reading Pane in Outlook. For guidance, see <a href="https://support.microsoft.com/office/2fd687ed-7fc4-4ae3-8eab-9f9b8c6d53f0" target="_blank">Use and configure the Reading Pane to preview messages</a>.</p></li>
52
-
<li><p>Hold <b>Ctrl</b> (Windows) or <b>Command</b> (Mac) while selecting multiple messages from your mailbox. You can select a maximum of 100 messages at a time.</p></li>
52
+
<li><p>Hold <kbd>Ctrl</kbd> (Windows) or <kbd>Cmd</kbd> (Mac) while selecting multiple messages from your mailbox. You can select a maximum of 100 messages at a time.</p></li>
53
53
</ol>
54
54
<p>The properties of the selected messages are automatically logged to the console.</p>
55
55
<p>To learn more about the item multi-select feature, see <a href="https://learn.microsoft.com/office/dev/add-ins/outlook/item-multi-select" target="_blank">Activate your Outlook add-in on multiple messages</a>.</p>
console.log(`Replacing ${count} placeholders with in-loop sync statements took ${Date.now() - startTime} milliseconds.`);
77
+
});
78
+
}
79
+
async function setup(timesToAddText: number = 1) {
80
+
await Word.run(async (context) => {
81
+
console.log("Setup beginning...");
82
+
const body: Word.Body = context.document.body;
83
+
body.clear();
84
+
while (timesToAddText > 0) {
85
+
body.insertParagraph(
86
+
"This defines the roles of {Coordinator}, {Deputy}, {Manager}.",
87
+
Word.InsertLocation.end
88
+
);
89
+
body.insertParagraph(
90
+
"{Coordinator}: Oversees daily operations and ensures projects run smoothly by coordinating between different teams and resources.",
91
+
Word.InsertLocation.end
92
+
);
93
+
body.insertParagraph(
94
+
"{Deputy}: Assists and supports senior management, often stepping in to make decisions or manage tasks in {Manager}'s absence.",
95
+
Word.InsertLocation.end
96
+
);
97
+
body.insertParagraph(
98
+
"{Manager}: Leads the team, setting goals, planning strategies, and making decisions to achieve organizational objectives.",
99
+
Word.InsertLocation.end
100
+
);
101
+
timesToAddText--;
102
+
}
103
+
await context.sync();
104
+
console.log("Setup complete.");
105
+
});
106
+
}
107
+
async function addLotsOfText() {
108
+
// Add the setup text 100 times.
109
+
setup(100);
110
+
}
111
+
// Default helper for invoking an action and handling errors.
112
+
async function tryCatch(callback) {
113
+
try {
114
+
await callback();
115
+
} catch (error) {
116
+
// Note: In a production add-in, you'd want to notify the user through your add-in's UI.
117
+
console.error(error);
118
+
}
119
+
}
120
+
language: typescript
121
+
template:
122
+
content: |-
123
+
<section class="ms-Fabric ms-font-m">
124
+
<p>This sample demonstrates the performance optimization gained from the correlated objects pattern. For more information, see <a href="https://learn.microsoft.com/en-us/office/dev/add-ins/concepts/correlated-objects-pattern">Avoid using the context.sync method in loops</a>.</p>
125
+
</section>
126
+
127
+
<section class="ms-Fabric samples ms-font-m">
128
+
<h3>Setup</h3>
129
+
<p>Use <b>Setup</b> to create a basic text block with some placeholders. Use <b>More text</b> to create a longer text block to better see performance distinctions.</p>
0 commit comments