点击或拖拽改变大小

ISWAddinCommandAddSWCommand 方法

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <summary> 文档]

命名空间:  Du.SolidWorks
程序集:  Du.SolidWorks (在 Du.SolidWorks.dll 中) 版本:0.1.1.0 (0.1.1)
语法
int AddSWCommand(
	ICommandGroup cmdGroup,
	string guid,
	string name,
	int postion,
	string hint,
	string tooltip,
	int imageListIndex,
	int commandIndex,
	int menuOption
)

参数

cmdGroup
类型:ICommandGroup

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="cmdGroup"/> 文档]

guid
类型:SystemString

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="guid"/> 文档]

name
类型:SystemString

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="name"/> 文档]

postion
类型:SystemInt32

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="postion"/> 文档]

hint
类型:SystemString

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="hint"/> 文档]

tooltip
类型:SystemString

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="tooltip"/> 文档]

imageListIndex
类型:SystemInt32

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="imageListIndex"/> 文档]

commandIndex
类型:SystemInt32

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="commandIndex"/> 文档]

menuOption
类型:SystemInt32

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <param name="menuOption"/> 文档]

返回值

类型:Int32

[缺少 "M:Du.SolidWorks.ISWAddinCommand.AddSWCommand(SolidWorks.Interop.sldworks.ICommandGroup,System.String,System.String,System.Int32,System.String,System.String,System.Int32,System.Int32,System.Int32)" 的 <returns> 文档]

参见