-
大小: 19KB文件類型: .zip金幣: 1下載: 0 次發(fā)布日期: 2021-06-03
- 語言: C#
- 標簽: C#??WebBrowser??IE版本??
資源簡介
C# WebBrowser 適應(yīng)你想要的IE版本核心 方便你在內(nèi)嵌式C/S 更好的體驗B/S
代碼片段和文件信息
using?System;
using?System.ComponentModel;
using?System.ComponentModel.Design;
using?System.Drawing;
using?System.Drawing.Drawing2D;
using?System.Windows.Forms;
namespace?Cyotek.Windows.Forms
{
??//?Cyotek?GroupBox?Component
??//?www.cyotek.com
??///?
??///?Represents?a?Windows?control?that?displays?a?frame?at?the?top?of?a?group?of?controls?with?an?optional?caption?and?icon.
??///?
??[ToolboxItem(true)]
??[DefaultEvent(“Click“)]
??[DefaultProperty(“Text“)]
??[Designer(“System.Windows.Forms.Design.GroupBoxDesigner?System.Design?Version=2.0.0.0?Culture=neutral?PublicKeyToken=b03f5f7f11d50a3a“)]
??[Designer(“System.Windows.Forms.Design.DocumentDesigner?System.Design?Version=2.0.0.0?Culture=neutral?PublicKeyToken=b03f5f7f11d50a3a“?typeof(IRootDesigner))]
??internal?class?GroupBox?:?System.Windows.Forms.GroupBox
??{
????#region?Instance?Fields
????private?Border3DSide?_borders?=?Border3DSide.Top;
????private?Pen?_bottomPen;
????private?Color?_headerForeColor;
????private?Size?_iconMargin;
????private?Image?_image;
????private?Color?_lineColorBottom;
????private?Color?_lineColorTop;
????private?bool?_showBorders;
????private?Pen?_topPen;
????#endregion
????#region?Public?Constructors
????///?
????///?Initializes?a?new?instance?of?the? ?class.
????///?
????public?GroupBox()
????{
??????_showBorders?=?true;
??????_iconMargin?=?new?Size(0?6);
??????_lineColorBottom?=?SystemColors.ButtonHighlight;
??????_lineColorTop?=?SystemColors.ButtonShadow;
??????_headerForeColor?=?SystemColors.HotTrack;
??????this.Setstyle(Controlstyles.DoubleBuffer?|?Controlstyles.AllPaintingInWmPaint?|?Controlstyles.ResizeRedraw?|?Controlstyles.UserPaint?|?Controlstyles.SupportsTransparentBackColor?true);
??????this.CreateResources();
????}
????#endregion
????#region?Overridden?Properties
????///?
????///?Gets?a?rectangle?that?represents?the?dimensions?of?the? .
????///?
????///?
????///?
????///?A? ?with?the?dimensions?of?the? .
????///?
????public?override?Rectangle?DisplayRectangle
????{
??????get
??????{
????????Size?clientSize;
????????int?fontHeight;
????????int?imageSize;
????????clientSize?=?base.ClientSize;
????????fontHeight?=?this.Font.Height;
????????if?(_image?!=?null)
????????{
??????????imageSize?=?_iconMargin.Width?+?_image.Width?+?3;
????????}
????????else
????????{
??????????imageSize?=?0;
????????}
????????return?new?Rectangle(3?+?imageSize?fontHeight?+?3?Math.Max(clientSize.Width?-?(imageSize?+?6)?0)?Math.Max((clientSize.Height?-?fontHeight)?-?6?0));
??????}
????}
????///?
????///?Returns?or?sets?the?text?displayed?in?this?control.
????///?
????///?
????///
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????9999??2014-06-28?16:40??GroupBox.cs
?????文件????????7406??2014-06-28?14:25??icon.ico
?????文件????????3336??2014-06-28?15:10??IeBrowserEmulation.csproj
?????文件????????1004??2014-06-28?14:18??IeBrowserEmulation.sln
?????文件????????7495??2014-06-28?16:40??InternetExplorerBrowserEmulation.cs
?????文件????????4981??2014-06-28?16:40??MainForm.cs
?????文件????????6475??2014-06-28?16:04??MainForm.Designer.cs
?????文件???????17229??2014-06-28?16:04??MainForm.resx
?????文件?????????663??2014-06-28?16:40??Program.cs
?????目錄???????????0??2014-06-28?14:47??Properties\
?????文件?????????869??2014-06-28?16:40??Properties\AssemblyInfo.cs
評論
共有 條評論