2013-05-21 35 views
2

是否可以从表达式中应用样式?应用表达式中的样式

我想斜体名称字段:

=Fields!Text.Value & " - " & Fields!CreatedDate.Value & " " & Fields!Name.Value 

回答

0

为单个文本框中的每个字段创建占位符。这使您可以更改每个特定字段的样式。我在我的博客上有一篇关于此的文章。 http://mrthetrain.wordpress.com/2012/09/14/placeholders-2/

+1

即使您的博客文章从未提及如何插入占位符。 – StevenWhite

+0

选择编辑后在文本框内右键单击,而不仅仅是选择整个文本框。您将获得“创建占位符...”选项 –

2

文本框包含textruns。每个textrun都有自己的风格。您需要编辑代码,使其看起来像这样:

<Textbox> 
<TextRun> 
    <Value>=Fields!Text.Value & " - " & Fields!CreatedDate.Value & " "</Value> 
</TextRun> 
<TextRun> 
    <Value>=Fields!Name.Value</Value> 
    <Style> 
    <FontStyle>Italic</FontStyle> 
    </Style> 
</TextRun> 
</Textbox> 
相关问题