点击或拖拽改变大小

IPropertyManagerPage2BuilderAddWPFUserControl 方法

添加WPF控件

命名空间:  Du.SolidWorks.Extension
程序集:  Du.SolidWorks (在 Du.SolidWorks.dll 中) 版本:0.1.1.0 (0.1.1)
语法
public IPropertyManagerPageWindowFromHandle AddWPFUserControl(
	int id,
	string caption,
	string tip,
	swPropertyManagerPageControlLeftAlign_e leftAlign,
	IEnumerable<swAddControlOptions_e> options,
	Action<IPropertyManagerPageWindowFromHandleWrapper> uiElementConfig
)

参数

id
类型:SystemInt32

[缺少 "M:Du.SolidWorks.Extension.IPropertyManagerPage2Builder.AddWPFUserControl(System.Int32,System.String,System.String,SolidWorks.Interop.swconst.swPropertyManagerPageControlLeftAlign_e,System.Collections.Generic.IEnumerable{SolidWorks.Interop.swconst.swAddControlOptions_e},System.Action{Du.SolidWorks.Extension.IPropertyManagerPageWindowFromHandleWrapper})" 的 <param name="id"/> 文档]

caption
类型:SystemString

[缺少 "M:Du.SolidWorks.Extension.IPropertyManagerPage2Builder.AddWPFUserControl(System.Int32,System.String,System.String,SolidWorks.Interop.swconst.swPropertyManagerPageControlLeftAlign_e,System.Collections.Generic.IEnumerable{SolidWorks.Interop.swconst.swAddControlOptions_e},System.Action{Du.SolidWorks.Extension.IPropertyManagerPageWindowFromHandleWrapper})" 的 <param name="caption"/> 文档]

tip
类型:SystemString

[缺少 "M:Du.SolidWorks.Extension.IPropertyManagerPage2Builder.AddWPFUserControl(System.Int32,System.String,System.String,SolidWorks.Interop.swconst.swPropertyManagerPageControlLeftAlign_e,System.Collections.Generic.IEnumerable{SolidWorks.Interop.swconst.swAddControlOptions_e},System.Action{Du.SolidWorks.Extension.IPropertyManagerPageWindowFromHandleWrapper})" 的 <param name="tip"/> 文档]

leftAlign
类型:swPropertyManagerPageControlLeftAlign_e

[缺少 "M:Du.SolidWorks.Extension.IPropertyManagerPage2Builder.AddWPFUserControl(System.Int32,System.String,System.String,SolidWorks.Interop.swconst.swPropertyManagerPageControlLeftAlign_e,System.Collections.Generic.IEnumerable{SolidWorks.Interop.swconst.swAddControlOptions_e},System.Action{Du.SolidWorks.Extension.IPropertyManagerPageWindowFromHandleWrapper})" 的 <param name="leftAlign"/> 文档]

options
类型:System.Collections.GenericIEnumerableswAddControlOptions_e

[缺少 "M:Du.SolidWorks.Extension.IPropertyManagerPage2Builder.AddWPFUserControl(System.Int32,System.String,System.String,SolidWorks.Interop.swconst.swPropertyManagerPageControlLeftAlign_e,System.Collections.Generic.IEnumerable{SolidWorks.Interop.swconst.swAddControlOptions_e},System.Action{Du.SolidWorks.Extension.IPropertyManagerPageWindowFromHandleWrapper})" 的 <param name="options"/> 文档]

uiElementConfig
类型:SystemActionIPropertyManagerPageWindowFromHandleWrapper

[缺少 "M:Du.SolidWorks.Extension.IPropertyManagerPage2Builder.AddWPFUserControl(System.Int32,System.String,System.String,SolidWorks.Interop.swconst.swPropertyManagerPageControlLeftAlign_e,System.Collections.Generic.IEnumerable{SolidWorks.Interop.swconst.swAddControlOptions_e},System.Action{Du.SolidWorks.Extension.IPropertyManagerPageWindowFromHandleWrapper})" 的 <param name="uiElementConfig"/> 文档]

返回值

类型:IPropertyManagerPageWindowFromHandle

[缺少 "M:Du.SolidWorks.Extension.IPropertyManagerPage2Builder.AddWPFUserControl(System.Int32,System.String,System.String,SolidWorks.Interop.swconst.swPropertyManagerPageControlLeftAlign_e,System.Collections.Generic.IEnumerable{SolidWorks.Interop.swconst.swAddControlOptions_e},System.Action{Du.SolidWorks.Extension.IPropertyManagerPageWindowFromHandleWrapper})" 的 <returns> 文档]

参见