1
からすべての属性のコレクションを取得する方法を私は持っている。このようないくつかのXML:LINQ:すべての要素
<Section xmlns=\"http:schemas.microsoft.com/winfx/2006/xaml/presentation\"> <Paragraph FontSize=\"12\" FontFamily=\"Arial\" Foreground=\"#FF000000\" FontWeight=\"Normal\" FontStyle=\"Normal\" FontStretch=\"Normal\" TextAlignment=\"Left\"> <Run FontWeight=\"Normal\" Text=\"space \" /> </Paragraph> </Section>
たfontWeightは、すべての属性のコレクションを取得する方法はあり、全てのFontSize属性、親要素にかかわらず、など?
ありがとうございますが、ファイルはありませんが、リッチテキストボックスの文字列があります。 – Number8
入手 - Document.Parse()を使用してください。これは私が探していたものです、ありがとう。 – Number8