This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user