We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bold particular string in paragraph

Hi

How to Bold particular string in paragraph
For Example

<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>AirAsia India said its Airbus A320, by design,
cannot dump lavatory waste while landing or during the flight. “Our lavatory
waste draining and disposal is outsourced to Globe Ground India (GGI).
It collects the waste from the aircraft and dumps it in the airport’s
designated waste dumping location,” an airline spokesperson said.
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>In the above paragraph
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”> I just print using buid.writeline();
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”> but i want get bold and italics for particular string…
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”> I Googled it… but i can’t get no results
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”> Pls provide the solution
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>
<span style=“font-size:12.0pt;line-height:107%;
font-family:“Times New Roman”,“serif”;mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>Thanks
Narendran
Hi Narendran,

Thanks for your inquiry. We suggest you please read following articles:

Aspose.Words Document Object Model.
Specifying Formatting

The Paragraph class represents a paragraph of text. All text of the document is stored in runs of text. Run can only be a child of Paragraph. You can use Run.Font property to format text.

Please let us know if you have any more queries.