本文整理汇总了C#中System.Windows.Documents.FlowDocument.FindName方法的典型用法代码示例。如果您正苦于以下问题:C# FlowDocument.FindName方法的具体用法?C# FlowDocument.FindName怎么用?C# FlowDocument.FindName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Documents.FlowDocument
的用法示例。
在下文中一共展示了FlowDocument.FindName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadDataForFlowDocument
private void LoadDataForFlowDocument(FlowDocument page, ShortFormReport reportModel)
{
if (reportModel != null)
{
var textBlock1 = page.FindName("dataClientNum") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataClientNum;
}
textBlock1 = page.FindName("dataUserCode") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataUserCode;
}
textBlock1 = page.FindName("dataScreenDate") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataScreenDate;
}
textBlock1 = page.FindName("dataName") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataName;
}
textBlock1 = page.FindName("dataAge") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataAge;
}
textBlock1 = page.FindName("dataHeight") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataHeight;
}
textBlock1 = page.FindName("dataWeight") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataWeight;
}
textBlock1 = page.FindName("dataScreenLocation") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataScreenLocation;
}
textBlock1 = page.FindName("dataMobile") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataMobile;
}
textBlock1 = page.FindName("dataEmail") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataEmail;
}
textBlock1 = page.FindName("dataLeftBreast") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataLeftBreast;
}
textBlock1 = page.FindName("dataRightBreast") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataRightBreast;
}
textBlock1 = page.FindName("dataLeftPalpableMass") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataLeftPalpableMass;
}
textBlock1 = page.FindName("dataRightPalpableMass") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataRightPalpableMass;
}
textBlock1 = page.FindName("dataLeftChangesOfElectricalConductivity") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataLeftChangesOfElectricalConductivity;
}
textBlock1 = page.FindName("dataRightChangesOfElectricalConductivity") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataRightChangesOfElectricalConductivity;
}
textBlock1 = page.FindName("dataLeftMammaryStruct") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataLeftMammaryStruct;
}
textBlock1 = page.FindName("dataRightMammaryStruct") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataRightMammaryStruct;
}
textBlock1 = page.FindName("dataLeftLactiferousSinusZone") as TextBlock;
if (textBlock1 != null)
{
textBlock1.Text = reportModel.DataLeftLactiferousSinusZone;
}
textBlock1 = page.FindName("dataRightLactiferousSinusZone") as TextBlock;
//.........这里部分代码省略.........