Skip to content

Commit 3edeedc

Browse files
Merge pull request #4426 from Syncfusion-Content/hotfix/hotfix-v30.1.37
DOCINFRA-2341_merged_using_automation
2 parents e17e039 + cf1b1fc commit 3edeedc

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

ej2-asp-core-mvc/document-editor/styles.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Styles in ##Platform_Name## Document Editor Component
3+
title: Styles in ##Platform_Name## Document Editor Component | Syncfusion
44
description: Learn here all about styles in Syncfusion ##Platform_Name## Document Editor component of Syncfusion Essential JS 2 and more.
55
platform: ej2-asp-core-mvc
66
control: Styles
@@ -80,7 +80,8 @@ New Styles are defined and added to the style collection of the document. In thi
8080
{% include code-snippet/document-editor/character-style/tagHelper %}
8181
{% endhighlight %}
8282
{% highlight c# tabtitle="Character-style.cs" %}
83-
{% endhighlight %}{% endtabs %}
83+
{% endhighlight %}
84+
{% endtabs %}
8485

8586
{% elsif page.publishingplatform == "aspnet-mvc" %}
8687

@@ -89,7 +90,8 @@ New Styles are defined and added to the style collection of the document. In thi
8990
{% include code-snippet/document-editor/character-style/razor %}
9091
{% endhighlight %}
9192
{% highlight c# tabtitle="Character-style.cs" %}
92-
{% endhighlight %}{% endtabs %}
93+
{% endhighlight %}
94+
{% endtabs %}
9395
{% endif %}
9496

9597

@@ -103,7 +105,8 @@ New Styles are defined and added to the style collection of the document. In thi
103105
{% include code-snippet/document-editor/paragraph-style/tagHelper %}
104106
{% endhighlight %}
105107
{% highlight c# tabtitle="Paragraph-style.cs" %}
106-
{% endhighlight %}{% endtabs %}
108+
{% endhighlight %}
109+
{% endtabs %}
107110

108111
{% elsif page.publishingplatform == "aspnet-mvc" %}
109112

@@ -112,7 +115,8 @@ New Styles are defined and added to the style collection of the document. In thi
112115
{% include code-snippet/document-editor/paragraph-style/razor %}
113116
{% endhighlight %}
114117
{% highlight c# tabtitle="Paragraph-style.cs" %}
115-
{% endhighlight %}{% endtabs %}
118+
{% endhighlight %}
119+
{% endtabs %}
116120
{% endif %}
117121

118122

@@ -126,7 +130,8 @@ New Styles are defined and added to the style collection of the document. In thi
126130
{% include code-snippet/document-editor/linked-style/tagHelper %}
127131
{% endhighlight %}
128132
{% highlight c# tabtitle="Linked-style.cs" %}
129-
{% endhighlight %}{% endtabs %}
133+
{% endhighlight %}
134+
{% endtabs %}
130135

131136
{% elsif page.publishingplatform == "aspnet-mvc" %}
132137

@@ -135,7 +140,8 @@ New Styles are defined and added to the style collection of the document. In thi
135140
{% include code-snippet/document-editor/linked-style/razor %}
136141
{% endhighlight %}
137142
{% highlight c# tabtitle="Linked-style.cs" %}
138-
{% endhighlight %}{% endtabs %}
143+
{% endhighlight %}
144+
{% endtabs %}
139145
{% endif %}
140146

141147

@@ -155,3 +161,14 @@ documenteditor.editor.applyStyle('New Linked');
155161
//Clear direct formatting and apply the specified style
156162
documenteditor.editor.applyStyle('New Linked', true);
157163
```
164+
165+
## Get Styles
166+
167+
You can get the styles in the document using the below code snippet.
168+
169+
```typescript
170+
//Get paragraph styles
171+
var paragraphStyles = documentEditor.getStyles('Paragraph');
172+
//Get character styles
173+
var characterStyles = documentEditor.getStyles('Character');
174+
```

0 commit comments

Comments
 (0)