Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 我想设置“文本”;前景“;在流程文档中使用rgb_.net_Xaml_Flowdocument - Fatal编程技术网

.net 我想设置“文本”;前景“;在流程文档中使用rgb

.net 我想设置“文本”;前景“;在流程文档中使用rgb,.net,xaml,flowdocument,.net,Xaml,Flowdocument,我想在FlowDocument中用rgb设置文本“前景” 我该怎么做 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\" Foregr

我想在FlowDocument中用rgb设置文本“前景”

我该怎么做

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> "; 

String^text=“您需要以十六进制格式表示argb,其中a=ff,r=01,g=02,b=03

Foreground=\"ff010203\"