Get size of richTextBlock

Hello,
I make richTextBlock from dynamic Text.
I want to get size of each Rich Text Block to make background square at the same size.
Any idea ?
Peharps in C++ ?

Thanks a lot

Maybe MyRichTextBox->DefaultTextStyle.Font or MyRichTextBox->DefaultTextStyleOverride.Font ?