DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Get Font and FontSize

Open Rustam-Ketchup opened this issue 5 years ago • 1 comments

Hi! How can i get the Font and FontSize of my paragraph? For example, i have a paragraph with font Arial and size 12, how i can get this in code?

Rustam-Ketchup avatar Mar 12 '20 04:03 Rustam-Ketchup

Hi,

You can always check the MagicTexts of the Paragraphs. These are the formatted texts in a paragraph. Paragraphs[0].MagicText[0].formatting.Size Paragraphs[0].MagicText[0].formatting.FontFamily

XceedBoucherS avatar Mar 16 '20 11:03 XceedBoucherS