this.ObjectName.Alignment = Alignment.Center;

解决方案 »

  1.   

    Selection是选区
    看看MS是怎么说的:
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;306683用C#来操作word并使用word中的宏在C#中使用word的接口函数(视频演示) 
    http://www.itvod.net/bbs/thread.php?fid=5
      

  2.   

    this.ObjectName.Alignment = Alignment.Center;
    顶3楼的,其实在VB.NET中其实直接就可以使用那些语法了。C#需要转换比较麻烦。
      

  3.   

    xiongchen(二氧化鬼):
    你的方法也不是说不可以实现。由于我的这个程序是一个升级的版本,所以还是希望能通过c#的代码来实现这两个功能
      

  4.   

    http://community.csdn.net/Expert/topic/3769/3769900.xml?temp=.1952173
      

  5.   

    app.Selection.ParagraphFormat.Alignment=Word.WdParagraphAlignment.wdAlignParagraphCenter;//(对齐)object insertBreak=null;
    insertBreak="wdPageBreak";
    app.Selection.InsertBreak(ref insertBreak);//插入分页符
      

  6.   

    app.Selection.ParagraphFormat.Alignment=Word.WdParagraphAlignment.wdAlignParagraphCenter;//(对齐)object insertBreak=null;
    insertBreak=0;
    app.Selection.InsertBreak(ref insertBreak);//插入分页符
      

  7.   

    VS2003的宏好像没有C#语言的支持吧.....
      

  8.   

    app.Selection.ParagraphFormat.Alignment=Word.WdParagraphAlignment.wdAlignParagraphCenter;//(对齐)object insertBreak=null;
    insertBreak=0;
    app.Selection.InsertBreak(ref insertBreak);//插入分页符