2013-04-02 2 views
0

XAML에서 흐름도의 단락의 인라인에 다음 텍스트를 배치하면 "충전"이라는 단어가 굵게 표시됩니다. 그러나 xmlreader.ReadInnerXml을 사용하여 xml 파일에서 같은 텍스트를 읽는 것은 아무 것도하지 않습니다.Xml 파일 읽기 및 흐름도에서 단어 굵게 만들기

이 전하 흐름에 대한 이온 및 전자의 저항은 플라즈마의 오믹 가열을 일으킨다.

어떻게 단어를 굵게 표시 할 수 있습니까? XML 파일의

'Part of the code reading the xml file and displaying the content in a flowdocument 
    x.ReadToFollowing("Paragraph") 
    Dim b As String = x.ReadInnerXml 
    paragraph.Inlines.Add(b) 
    flowdocument.Blocks.Add(paragraph) 
    flowdocumentscrollviewer.Document=flowdocument 

부 :

<HelpDocuments> 
    <ICPCanvas1Help Num="1"> 
    <Paragraph Color="Black" FontWeight="Normal" Alignment="0" FontSize="14"> 
This interaction causes the ions and electrons 
within the coil to flow in the closed annular paths 
shown in the window. The resistance of the ions and 
electrons to this flow of<Run FontWeight="Bold"> charge </Run> causes ohmic heating of 
the plasma.  
    </Paragraph> 
    </ICPCanvas1Help> 
</HelpDocuments> 

답변

0

는 굵게 할 단어 주위에 다음 태그를 추가합니다.

<Run FontWeight="bold">charge</Run>

+0

이 태그는 실제로 있었지만 워드 프로세서는이를 생략했습니다. Xml 파일에서 flowdocument 읽을 때 내 문제가 해결되지 않습니다. – user2204526

+0

렌더링되지 않는 항목은 무엇입니까? 무슨 프로세서 요? – FlavorScape

+0

내 텍스트에서 태그를 생략 stackoverflow 뜻. 위의 코드는 Xaml에있을 때 작동하지만 Xml 파일에서 읽을 때 작동하지 않습니다. 내 XML 파일에서 위의 코드가 존재하지만 어떤 것도 굵게 표시하지는 않습니다. 위의 코드는 xml 파일 내용을 가져 오는 flowDocument에서 다른 텍스트처럼 나타나며 굵게 표시되지 않습니다. – user2204526