📄 axmshelpcontrols.cs
字号:
return this.ocx.LangId;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("LangId", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.LangId = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(4104)]
public virtual MSHelpControls.HxFontSourceConstant FontSource {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FontSource", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.FontSource;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FontSource", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.FontSource = value;
}
}
public event IHxTreeViewEvents_NodeClickEventHandler NodeClick;
public event IHxTreeViewEvents_NodeRightClickEventHandler NodeRightClick;
public override void Refresh() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Refresh", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Refresh();
}
public virtual void Synchronize(string bstrURL) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Synchronize", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Synchronize(bstrURL);
}
protected override void CreateSink() {
try {
this.eventMulticaster = new AxHxTocCtrlEventMulticaster(this);
this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(MSHelpControls.IHxTreeViewEvents));
}
catch (System.Exception ) {
}
}
protected override void DetachSink() {
try {
this.cookie.Disconnect();
}
catch (System.Exception ) {
}
}
protected override void AttachInterfaces() {
try {
this.ocx = ((MSHelpControls.IHxTreeView)(this.GetOcx()));
}
catch (System.Exception ) {
}
}
internal void RaiseOnNodeClick(object sender, IHxTreeViewEvents_NodeClickEvent e) {
if ((this.NodeClick != null)) {
this.NodeClick(sender, e);
}
}
internal void RaiseOnNodeRightClick(object sender, IHxTreeViewEvents_NodeRightClickEvent e) {
if ((this.NodeRightClick != null)) {
this.NodeRightClick(sender, e);
}
}
}
public delegate void IHxTreeViewEvents_NodeClickEventHandler(object sender, IHxTreeViewEvents_NodeClickEvent e);
public class IHxTreeViewEvents_NodeClickEvent {
public int hNode;
public IHxTreeViewEvents_NodeClickEvent(int hNode) {
this.hNode = hNode;
}
}
public delegate void IHxTreeViewEvents_NodeRightClickEventHandler(object sender, IHxTreeViewEvents_NodeRightClickEvent e);
public class IHxTreeViewEvents_NodeRightClickEvent {
public int hNode;
public int x;
public int y;
public IHxTreeViewEvents_NodeRightClickEvent(int hNode, int x, int y) {
this.hNode = hNode;
this.x = x;
this.y = y;
}
}
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class AxHxTocCtrlEventMulticaster : MSHelpControls.IHxTreeViewEvents {
private AxHxTocCtrl parent;
public AxHxTocCtrlEventMulticaster(AxHxTocCtrl parent) {
this.parent = parent;
}
public virtual void NodeClick(int hNode) {
IHxTreeViewEvents_NodeClickEvent nodeclickEvent = new IHxTreeViewEvents_NodeClickEvent(hNode);
this.parent.RaiseOnNodeClick(this.parent, nodeclickEvent);
}
public virtual void NodeRightClick(int hNode, int x, int y) {
IHxTreeViewEvents_NodeRightClickEvent noderightclickEvent = new IHxTreeViewEvents_NodeRightClickEvent(hNode, x, y);
this.parent.RaiseOnNodeRightClick(this.parent, noderightclickEvent);
}
}
[System.Windows.Forms.AxHost.ClsidAttribute("{314111c6-a502-11d2-bbca-00c04f8ec294}")]
[System.ComponentModel.DesignTimeVisibleAttribute(true)]
public class AxHxIndexCtrl : System.Windows.Forms.AxHost {
private MSHelpControls.IHxIndexView ocx;
private AxHxIndexCtrlEventMulticaster eventMulticaster;
private System.Windows.Forms.AxHost.ConnectionPointCookie cookie;
public AxHxIndexCtrl() :
base("314111c6-a502-11d2-bbca-00c04f8ec294") {
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(16384)]
public virtual MSHelpServices.IHxIndex IndexData {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("IndexData", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.IndexData;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("IndexData", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.IndexData = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(16385)]
public virtual int Selection {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Selection", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.Selection;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Selection", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.Selection = value;
}
}
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(-501)]
[System.Runtime.InteropServices.ComAliasNameAttribute("System.UInt32")]
public override System.Drawing.Color BackColor {
get {
if (((this.ocx != null)
&& (this.PropsValid() == true))) {
return GetColorFromOleColor(((uint)(this.ocx.BackColor)));
}
else {
return base.BackColor;
}
}
set {
base.BackColor = value;
if ((this.ocx != null)) {
this.ocx.BackColor = ((uint)(GetOleColorFromColor(value)));
}
}
}
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(-513)]
[System.Runtime.InteropServices.ComAliasNameAttribute("System.UInt32")]
public override System.Drawing.Color ForeColor {
get {
if (((this.ocx != null)
&& (this.PropsValid() == true))) {
return GetColorFromOleColor(((uint)(this.ocx.ForeColor)));
}
else {
return base.ForeColor;
}
}
set {
base.ForeColor = value;
if ((this.ocx != null)) {
this.ocx.ForeColor = ((uint)(GetOleColorFromColor(value)));
}
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(-504)]
public virtual MSHelpControls.HxBorderStyle BorderStyle {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("BorderStyle", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.BorderStyle;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("BorderStyle", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.BorderStyle = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(-520)]
public virtual MSHelpControls.HxAppearanceConstant Appearance {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Appearance", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.Appearance;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Appearance", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.Appearance = value;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -