📄 createparams.cs
字号:
using System;
namespace OpenNETCF.Windows.Forms
{
/// <summary>
/// Encapsulates the information needed when creating a control.
/// </summary>
public class CreateParams
{
#region Fields
private string caption;
private string className;
private int classStyle;
private int style;
private int exStyle;
private int height;
private IntPtr param;
private IntPtr parent;
private int width;
private int x;
private int y;
#endregion
/// <summary>
/// Initializes a new instance of the CreateParams class.
/// </summary>
public CreateParams()
{
param = IntPtr.Zero;
parent = IntPtr.Zero;
caption = String.Empty;
className = String.Empty;
}
/// <summary>
/// Gets or sets the control's initial text.
/// </summary>
public string Caption
{
get
{
return caption;
}
set
{
caption = value;
}
}
/// <summary>
/// Gets or sets the name of the Windows class to derive the control from.
/// </summary>
public string ClassName
{
get
{
return className;
}
set
{
className = value;
}
}
/// <summary>
/// Gets or sets a bitwise combination of class style values.
/// </summary>
public int ClassStyle
{
get
{
return classStyle;
}
set
{
classStyle = value;
}
}
/// <summary>
/// Gets or sets a bitwise combination of window style values.
/// </summary>
public int Style
{
get
{
return style;
}
set
{
style = value;
}
}
/// <summary>
/// Gets or sets additional parameter information needed to create the control.
/// </summary>
public IntPtr Param
{
get
{
return param;
}
set
{
param = value;
}
}
/// <summary>
/// Gets or sets a bitwise combination of extended window style values.
/// </summary>
public int ExStyle
{
get
{
return exStyle;
}
set
{
exStyle = value;
}
}
/// <summary>
/// Gets or sets the initial height of the control.
/// </summary>
public int Height
{
get
{
return height;
}
set
{
height = value;
}
}
/// <summary>
/// Gets or sets the control's parent.
/// </summary>
public IntPtr Parent
{
get
{
return parent;
}
set
{
parent = value;
}
}
/// <summary>
/// Gets or sets the initial width of the control.
/// </summary>
public int Width
{
get
{
return width;
}
set
{
width = value;
}
}
/// <summary>
/// Gets or sets the initial left position of the control.
/// </summary>
public int X
{
get
{
return x;
}
set
{
x = value;
}
}
/// <summary>
/// Gets or sets the initial top position of the control.
/// </summary>
public int Y
{
get
{
return y;
}
set
{
y = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -