How to apply superscript for particular part of string or flowdocument

Posted on 2010-09-14
Last Modified: 2013-12-16
Please suggest on howto apply superscript for particular part of string or flowdocument.
Question by:Mohit_Kaushal
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 12

Accepted Solution

rajapandian_81 earned 125 total points
ID: 33680626

<Page xmlns=""
        <FlowDocument ColumnWidth="800">
            <Paragraph Background="Green">               
                <Span FontSize="40">Baseline:</Span>
                <Span BaselineAlignment="Subscript">Subscript</Span>
                <Span BaselineAlignment="Baseline">Baseline</Span>
                <Span BaselineAlignment="Superscript">Superscript</Span>

Open in new window


Author Comment

ID: 33686886
Thanks a lot rajapandian_81: I used the same approach to work with code as well.

Paragraph myParagraph = new Paragraph();
Span mySpan = new Span(new Run(myText));
mySpan .BaselineAlignment = BaselineAlignment.Superscript;
myParagraph .Inlines.Add(verseSpan);

FlowDocument myFlowDocument = new FlowDocument();
LVL 12

Expert Comment

ID: 33689006
Welcome :-)

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question