Skip to content

Commit b29da63

Browse files
ES-999797-Changes added
1 parent b8a6eee commit b29da63

4 files changed

Lines changed: 77 additions & 102 deletions

File tree

Document-Processing-toc.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4428,12 +4428,6 @@
44284428
</li>
44294429
<li>
44304430
<a href="/document-processing/word/word-library/net/html">HTML Conversions</a>
4431-
<ul>
4432-
<li>
4433-
<a href="/document-processing/word/word-library/net/CSS-Selector">CSS Selector</a>
4434-
</li>
4435-
4436-
</ul>
44374431
</li>
44384432
<li>
44394433
<a href="/document-processing/word/word-library/net/convert-word-document-to-markdown-in-csharp">Word Document to Markdown</a>

Document-Processing/Word/Word-Library/NET/CSS-Selector.md

Lines changed: 0 additions & 94 deletions
This file was deleted.

Document-Processing/Word/Word-Library/NET/faqs/word-document-faqs.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,6 @@ This is because a Word document is a flow-based document, where contents are not
674674

675675
DocIO is a non-UI component that provides a full-fledged document object model to manipulate the Word document contents based on file-level information. Hence, it is not feasible to retrieve the position of an element within a Word document using DocIO.
676676

677-
## Sensitivity Labels in Word Documents
678-
679677
## Does DocIO support sensitivity labels?
680678
No, Sensitivity labels are organization-level settings and are not stored within the word document itself. Therefore, DocIO does not support applying or preserving sensitivity labels.
681679

Document-Processing/Word/Word-Library/NET/html.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,83 @@ N> Calling the above event is mandatory in ASP.NET Core, UWP, and Xamarin platfo
248248

249249
* [How to get image from URL while opening HTML in .NET Core targeting applications?](https://www.syncfusion.com/kb/13053/how-to-get-image-from-url-while-opening-html-in-asp-net-core)
250250

251+
### Supported CSS Selector in DocIO
252+
253+
CSS selectors are used to select the HTML elements you want to style and apply a set of CSS rules.
254+
<table>
255+
<tr>
256+
<td><strong>Selectors</strong></td>
257+
<td><strong>CSS Code</strong></td>
258+
<td><strong>HTML</strong></td>
259+
</tr>
260+
<tr>
261+
<td>Element Selector</td>
262+
<td>p {
263+
color: yellow;
264+
font-size: 36px;
265+
}
266+
</td>
267+
<td><code>&lt;p&gt;This is Element selector Paragraph&lt;/p&gt;</code></td>
268+
</tr>
269+
<tr>
270+
<td>Class selector</td>
271+
<td>.highlight {
272+
color: red;
273+
font-size: 18pt;
274+
}
275+
</td>
276+
<td><code>&lt;p class="highlight"&gt;This is a class selector Paragraph&lt;/p&gt;</code></td>
277+
</tr>
278+
<tr>
279+
<td>ID selector</td>
280+
<td>#demo-id {
281+
color: #1a73e8;
282+
font-size: 22pt;
283+
font-weight: 600;
284+
}
285+
</td>
286+
<td><code>&lt;p id="demo-id"&gt;This is ID Selector paragraph&lt;/p&gt;</code></td>
287+
</tr>
288+
<tr>
289+
<td>Group Selectors</td>
290+
<td>h2, .group-title {
291+
color: green;
292+
font-size: 20pt;
293+
}
294+
</td>
295+
<td>
296+
<code>&lt;h2&gt;Group Selector Example&lt;/h2&gt;<br>
297+
&lt;p class="group-title"&gt;Paragraph styled by group selector.&lt;/p&gt;</code>
298+
</td>
299+
</tr>
300+
<tr>
301+
<td>Compound Selectors</td>
302+
<td>p.compound {
303+
color: orange;
304+
font-size: 26pt;
305+
font-weight: bold;
306+
}
307+
</td>
308+
<td><code>&lt;p class="compound"&gt;Paragraph for Class + Compound&lt;/p&gt;</code></td>
309+
</tr>
310+
<tr>
311+
<td>Descendant Selectors</td>
312+
<td>div p {
313+
color: #5f7000;
314+
font-style: italic;
315+
font-size: 18px;
316+
}
317+
</td>
318+
<td>
319+
<code>&lt;div&gt;<br>
320+
&nbsp;&nbsp;&lt;p&gt;Descendant Selector: Paragraph inside a div.&lt;/p&gt;<br>
321+
&lt;/div&gt;</code>
322+
</td>
323+
</tr>
324+
</table>
325+
326+
You can download a complete working sample that includes all these CSS selectors from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/HTML-conversions/Convert-HTML-with-CSS-Selctor-to-Word)
327+
251328
## Convert Word to HTML
252329

253330
The following code example shows how to convert the Word document into HTML.

0 commit comments

Comments
 (0)