0

FlowDocumentでrgbを使用してテキスト「Foreground」を設定したいと思います。

これどうやってするの?

String ^text = "<FlowDocument \
xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" \
xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" \
<Paragraph> \
<Span FontSize=\"18\" Foreground=\"Red\">Some text in the paragraph.</Span> \
Some text that is not bold. \
</Paragraph> \
</FlowDocument> "; 
4

1 に答える 1

0

a = ff、r = 01、g = 02、b = 03の16進形式でargbを表す必要があります

Foreground=\"ff010203\"
于 2013-03-23T06:32:13.970 に答える