C# Class Framework.Interface.Common.WinWordControlEx

Show file Open project: callme119/civil

Public Properties

Property Type Description
copyPath string
randomPath string
showPath string
tempPath string

Public Methods

Method Description
AddDoc ( string doc ) : void
AddRtf ( string rtf ) : void
CreateShowFile ( ) : void
CreateTempFile ( byte buffByte, string path ) : void
DeleteText ( string startText, string endText ) : bool

删除word文档中相应的内容

DeleteText ( string startText, string endText, string path ) : bool

删除word文档中相应的内容

GetWordStream ( string path ) : byte[]
GetWordString ( string path ) : string
InsertBT ( ) : void
InsertChart ( System dtsheet ) : void
InsertFile ( string path ) : void
InsertPic ( string text, string path ) : void
InsertTable ( int tableNum, int startRow, System array ) : void
InsertTitle ( string title, string level ) : void
LoadWord ( string path ) : void
MoveToTop ( ) : void
Replace ( byte buffByte, string strOldText ) : bool
Replace ( string strOldText, string strNewText ) : bool
Replace ( string strOldText, string strNewText, string path ) : bool
SaveWord ( string path ) : void
SetWordStream ( byte buffByte, string path ) : void
SetWordString ( string str, string path ) : void
WinWordControlEx ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

清理所有正在使用的资源。

Private Methods

Method Description
InitializeComponent ( ) : void

设计器支持所需的方法 - 不要 使用代码编辑器修改此方法的内容。

Method Details

AddDoc() public method

public AddDoc ( string doc ) : void
doc string
return void

AddRtf() public method

public AddRtf ( string rtf ) : void
rtf string
return void

CreateShowFile() public method

public CreateShowFile ( ) : void
return void

CreateTempFile() public method

public CreateTempFile ( byte buffByte, string path ) : void
buffByte byte
path string
return void

DeleteText() public method

删除word文档中相应的内容
public DeleteText ( string startText, string endText ) : bool
startText string 起始字符
endText string 终止字符
return bool

DeleteText() public method

删除word文档中相应的内容
public DeleteText ( string startText, string endText, string path ) : bool
startText string 起始字符
endText string 终止字符
path string 文档路径
return bool

Dispose() protected method

清理所有正在使用的资源。
protected Dispose ( bool disposing ) : void
disposing bool 如果应释放托管资源,为 true;否则为 false。
return void

GetWordStream() public method

public GetWordStream ( string path ) : byte[]
path string
return byte[]

GetWordString() public method

public GetWordString ( string path ) : string
path string
return string

InsertBT() public method

public InsertBT ( ) : void
return void

InsertChart() public method

public InsertChart ( System dtsheet ) : void
dtsheet System
return void

InsertFile() public method

public InsertFile ( string path ) : void
path string
return void

InsertPic() public method

public InsertPic ( string text, string path ) : void
text string
path string
return void

InsertTable() public method

public InsertTable ( int tableNum, int startRow, System array ) : void
tableNum int
startRow int
array System
return void

InsertTitle() public method

public InsertTitle ( string title, string level ) : void
title string
level string
return void

LoadWord() public method

public LoadWord ( string path ) : void
path string
return void

MoveToTop() public method

public MoveToTop ( ) : void
return void

Replace() public method

public Replace ( byte buffByte, string strOldText ) : bool
buffByte byte
strOldText string
return bool

Replace() public method

public Replace ( string strOldText, string strNewText ) : bool
strOldText string
strNewText string
return bool

Replace() public method

public Replace ( string strOldText, string strNewText, string path ) : bool
strOldText string
strNewText string
path string
return bool

SaveWord() public method

public SaveWord ( string path ) : void
path string
return void

SetWordStream() public method

public SetWordStream ( byte buffByte, string path ) : void
buffByte byte
path string
return void

SetWordString() public method

public SetWordString ( string str, string path ) : void
str string
path string
return void

WinWordControlEx() public method

public WinWordControlEx ( ) : System
return System

Property Details

copyPath public static property

public static string copyPath
return string

randomPath public static property

public static string randomPath
return string

showPath public static property

public static string showPath
return string

tempPath public static property

public static string tempPath
return string