This commit is contained in:
2008-11-19 13:53:59 +00:00
parent f4daddd0d4
commit dd571890fc
5 changed files with 49 additions and 19 deletions

View File

@@ -108,5 +108,16 @@ namespace Volian.MSWord
{
m_App.Quit(ref oFalse, ref optional, ref optional);
}
public void SetLineSpacing(float linesPerInch) // if need landscape set too: , bool landscape)
{
Selection sel = m_App.Selection;
sel.WholeStory();
// if need landscape set too: if (landscape) sel.PageSetup.Orientation = WdOrientation.wdOrientLandscape;
sel.ParagraphFormat.SpaceBefore=0;
sel.ParagraphFormat.SpaceAfter = 0;
sel.ParagraphFormat.LineSpacingRule = WdLineSpacing.wdLineSpaceExactly;
sel.ParagraphFormat.LineSpacing = 72/linesPerInch; // 12 ==> 6 Lines per inch
}
}
}