Ejemplo n.º 1
0
 /// <summary>
 /// 设置当前页面的字体
 /// </summary>
 /// <param name="currentPageStyle">字体设置</param>
 public void SetCurrentPageStyle(MyWordCurrentStyle currentPageStyle)
 {
     _WordApplicMain.Selection.ParagraphFormat.LineSpacingRule         = Microsoft.Office.Interop.Word.WdLineSpacing.wdLineSpaceSingle;
     _WordApplicMain.Selection.ParagraphFormat.FarEastLineBreakControl = 0;
     _WordApplicMain.Selection.ParagraphFormat.WordWrap = 0;
     _WordApplicMain.Selection.Font.Bold = currentPageStyle.FontBlod;
     _WordApplicMain.Selection.Font.Size = currentPageStyle.FontSize;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 设置当前页面的字体
 /// </summary>
 /// <param name="currentPageStyle">字体设置</param>
 public void SetCurrentPageStyle(MyWordCurrentStyle currentPageStyle)
 {
     _WordApplicMain.Selection.ParagraphFormat.LineSpacingRule = Microsoft.Office.Interop.Word.WdLineSpacing.wdLineSpaceSingle;
     _WordApplicMain.Selection.ParagraphFormat.FarEastLineBreakControl = 0;
     _WordApplicMain.Selection.ParagraphFormat.WordWrap = 0;
     _WordApplicMain.Selection.Font.Bold = currentPageStyle.FontBlod;
     _WordApplicMain.Selection.Font.Size = currentPageStyle.FontSize;
 }