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

Free Support Forum - aspose.com

How to work with bulleted lists and text styles using .NET

Im unable to get the different style of text from word and bulleted list text from word file.


please let me know how read bulleted lists and styles from word file.


Thanks,
Bhushanam

Hi Bhushanam,

Thanks for your query. Please read following documentation links for your kind reference. Hope this helps you. Let us know, If you have any more queries.



Thanks you for reply.


How to get the bgcolor , text color and font size of the paragraph ?


Thanks,
Bhushanam.

Hi Bhushanam,

Please use the following code snippet to get the text color, font information. Please read following documentation links for your kind reference.


Document doc = new Document(MyDir + "in.doc");
Node[] paras = doc.GetChildNodes(NodeType.Paragraph, true).ToArray();

foreach (Paragraph para in paras)

{

Node[] runs = para.GetChildNodes(NodeType.Run, true).ToArray();

foreach (Run run in runs)

{

Console.Write(run.Font.Color);

Console.Write(run.Font.Name);

Console.Write(run.Font.Size);

Console.Write(run.Font.Shading.BackgroundPatternColor);

Console.Write(run.Font.Shading.ForegroundPatternColor);

}

}