?? opennetcf.windows.forms.xml
字號:
<summary>
Gets or sets the color of the border for the control.
</summary>
<value>A <see cref="T:System.Drawing.Color" /> value that represents the border color of the control. The default is Color.Black.</value>
</member>
<member name="P:OpenNETCF.Windows.Forms.BatteryLife.PercentageBarColor">
<summary>
Gets or sets the color used to display the percentage of remaining battery life.
</summary>
<value>A <see cref="T:System.Drawing.Color" /> value that represents the color used to display the percentage of remaining battery life. The default is SystemColors.Highlight.</value>
</member>
<member name="P:OpenNETCF.Windows.Forms.BatteryLife.PowerStatus">
<summary>
Gets the system power status information.
</summary>
<value>A <see cref="T:OpenNETCF.Windows.Forms.PowerStatus" /> that represents the system power status information.</value>
</member>
<member name="T:OpenNETCF.Windows.Forms.BatteryMonitor">
<summary>
Represents a component that monitors the battery level.
</summary>
<example>
<code>
[C#]
public class Form1 : System.Windows.Forms.Form
{
private System.ComponentModel.IContainer components = null;
private OpenNETCF.Windows.Forms.BatteryMonitor batteryMonitor1;
public Form1()
{
batteryMonitor1 = new OpenNETCF.Windows.Forms.BatteryMonitor(components);
batteryMonitor1.PrimaryBatteryLifeTrigger = 75;
batteryMonitor1.PrimaryBatteryLifeNotification += new System.EventHandler(batteryMonitor1_PrimaryBatteryLifeNotification);
batteryMonitor1.Enabled = true;
}
protected override void Dispose(bool disposing)
{
if ((disposing) && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void batteryMonitor1_PrimaryBatteryLifeNotification(object sender, EventArgs e)
{
// Do something here.
}
}
</code>
</example>
</member>
<member name="F:OpenNETCF.Windows.Forms.BatteryMonitor.DefaultBatteryLifePercent">
<summary>
Specifies the default value for the PrimaryBatteryLifeTrigger property.
</summary>
</member>
<member name="M:OpenNETCF.Windows.Forms.BatteryMonitor.#ctor">
<summary>
Initializes a new instance of the BatteryMonitor class.
</summary>
</member>
<member name="M:OpenNETCF.Windows.Forms.BatteryMonitor.#ctor(System.ComponentModel.IContainer)">
<summary>
Initializes a new instance of the BatteryMonitor class with the specified container.
</summary>
<param name="container">An IContainer that represents the container for the BatteryMonitor.</param>
</member>
<member name="M:OpenNETCF.Windows.Forms.BatteryMonitor.Finalize">
<summary>
Allows an instance of the BatteryMonitor class to attempt to free resources and perform other cleanup operations.
</summary>
</member>
<member name="M:OpenNETCF.Windows.Forms.BatteryMonitor.Dispose">
<summary>
Releases all resources used by the BatteryMonitor instance.
</summary>
</member>
<member name="M:OpenNETCF.Windows.Forms.BatteryMonitor.Dispose(System.Boolean)">
<summary>
Releases the unmanaged resources used by the BatteryMonitor instance and optionally releases the managed resources.
</summary>
<param name="disposing"><b>true</b> to release both managed and unmanaged resources; <b>false</b> to release only unmanaged resources.</param>
</member>
<member name="M:OpenNETCF.Windows.Forms.BatteryMonitor.OnPrimaryBatteryLifeNotification(System.EventArgs)">
<summary>
Raises the PrimaryBatteryLifeNotification event.
</summary>
<param name="e">An EventArgs that contains the event data.</param>
</member>
<member name="M:OpenNETCF.Windows.Forms.BatteryMonitor.Timer_Tick(System.Object,System.EventArgs)">
<summary>
The event handler used to determine if notifications should be sent to subscribers.
</summary>
</member>
<member name="P:OpenNETCF.Windows.Forms.BatteryMonitor.Enabled">
<summary>
Gets or sets a value that represents whether the power notification events will be raised.
</summary>
<value>A <see cref="T:System.Boolean" /> value that represents whether the power notification events will be raised. The default is <b>false</b>.</value>
</member>
<member name="P:OpenNETCF.Windows.Forms.BatteryMonitor.Interval">
<summary>
Gets or sets a value that represents how often the system power is queried, in milliseconds.
</summary>
<value>A <see cref="T:System.Int32" /> value that represents how often the system power is queried, in milliseconds. The default is 1000 (1 second).</value>
</member>
<member name="P:OpenNETCF.Windows.Forms.BatteryMonitor.PrimaryBatteryLifeTrigger">
<summary>
Gets or sets a value that represents the percentage at which the PrimaryBatteryLifeNotification event should be raised.
</summary>
<value>A <see cref="T:System.Int32" /> value that represents the percentage at which the PrimaryBatteryLifeNotification event should be raised. The default is the value of the DefaultBatteryLifePercent constant.</value>
</member>
<member name="E:OpenNETCF.Windows.Forms.BatteryMonitor.PrimaryBatteryLifeNotification">
<summary>
Occurs when the primary battery life percentage is equal to the value of the PrimaryBatteryLifeTrigger property.
</summary>
<remarks>
The Enabled property will be set to <b>false</b> when this event is raised. This prevents
event handlers from being called multiple times while the trigger is satisfied. To receive
further power notifications the Enabled property must once again be set to <b>true</b>.
</remarks>
</member>
<member name="T:OpenNETCF.Windows.Forms.Button2">
<summary>
Represents a button control.
</summary>
</member>
<member name="T:OpenNETCF.Windows.Forms.ButtonBase2">
<summary>
Implements the basic functionality common to button controls.
</summary>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.#ctor">
<summary>
Initializes the base information for a class derived from ButtonBase2.
</summary>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.Dispose(System.Boolean)">
<summary>
Releases the unmanaged resources used by the ButtonBase2 and optionally releases the managed resources.
</summary>
<param name="disposing"><b>true</b> to release both managed and unmanaged resources; <b>false</b> to release only unmanaged resources.</param>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.DisposeDoubleBuffer">
<summary>
Clean up the objects used to represent the double buffer for the presentation of the control.
</summary>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.DrawDoubleBuffer(System.Drawing.Graphics)">
<summary>
Draws the contents of the buffer to the control if the presentation was double buffered.
</summary>
<param name="controlGraphics">A <see cref="T:System.Drawing.Graphics"/> object representing the drawing surface of the control in which to output the contents of the buffer.</param>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.GetPresentationMedium(System.Drawing.Graphics)">
<summary>
Gets a reference to the proper drawing medium used to update the presentation of the control.
</summary>
<param name="controlGraphics">A <see cref="T:System.Drawing.Graphics"/> object representing the drawing surface of the control.</param>
<returns>A <see cref="T:System.Drawing.Graphics"/> object that should be used to update the presentation of the control.</returns>
<remarks>
The <see cref="T:System.Drawing.Graphics"/> object returned from this method will either be a reference to the buffer, if the DoubleBuffered property is set to <b>true</b>, or the reference to the drawing surface of the control that was provided as the argument.
</remarks>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.IsSequentialPaintingComplete(System.Int32)">
<summary>
Determines if the specified sequential painting token was the last one registered.
</summary>
<param name="sequentialPaintingToken">A <see cref="T:System.Int32"/> that specifies the sequential painting token to compare with the last registered token.</param>
<returns>A <see cref="T:System.Boolean"/> that is set to <b>true</b> if the specified sequential painting token was the last one registered; otherwise, <b>false</b>.</returns>
<remarks>
A control can register for sequential painting by calling the RegisterSequentialPainting method.
</remarks>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.NotifyPaintingComplete(System.Int32,System.Windows.Forms.PaintEventArgs)">
<summary>
Indicates that a certain class (generation) in the control hierarchy has completed updating the presentation.
</summary>
<param name="sequentialPaintingToken">A <see cref="T:System.Int32"/> that specifies the sequential painting token of the class (generation) that has completed updating the presentation.</param>
<param name="args">A <see cref="T:System.Windows.Forms.PaintEventArgs"/> that references the original paint argument passed to the OnPaint method.</param>
<remarks>
If the sequential painting token argument represents the last token registered, this method will raise the Paint event, using the double buffer <see cref="T:System.Drawing.Graphics"/> object if the DoubleBuffered property is set to <b>true</b>, and will also draw the contents of the buffer to the control, if applicable.
</remarks>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.OnKeyDown(System.Windows.Forms.KeyEventArgs)">
<summary>
Raises the KeyDown event.
</summary>
<param name="e">A KeyEventArgs that contains the event data.</param>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.OnPaint(System.Windows.Forms.PaintEventArgs)">
<summary>
Raises the Paint event.
</summary>
<param name="e">A PaintEventArgs that contains the event data.</param>
<remarks>
<b>Notes to Inheritors:</b> See the example section for the recommended pattern to ensure that double buffering and structured paint sequencing are both accommodated.
</remarks>
<example>
namespace MyCompanyName.TechnologyName
{
public class Button : OpenNETCF.Windows.Forms.ButtonBase2
{
private readonly int sequentialPaintingToken = Int32.MinValue;
public Button()
{
// Note: The RegisterSequentialPainting method should only be called if the OnPaint method,
// in this class, is to be overridden.
// Register in the sequential painting process so that, primarily, if this class is the most
// derived class in the hierarchy that needs to update the presentation of the control, the
// Paint event may be delayed until all classes in the hierarchy have had a chance to update
// the presentation.
this.sequentialPaintingToken = base.RegisterSequentialPainting();
// Note: Double buffering does not need to be enabled for sequential painting to take place.
// Request that the presentation be buffered before being drawn to the control.
base.DoubleBuffered = true;
}
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
// Call the base classes OnPaint method to ensure that all appropriate base painting has been
// done prior to performing the presentation contribution of this class.
base.OnPaint(e);
// Get a reference to the proper Graphics object used to update the presentation of the control.
Graphics presentation = base.GetPresentationMedium(e.Graphics);
// ...
// presentation.FillRectangle(Brush, X, Y, Width, Height);
// ...
// Indicate that this class is done updating the presentation. If the sequential paint token
// for this class was the last one registered, then the Paint event will be triggered, and,
// if the presentation was double buffered, the contents of the buffer will be drawn to the
// control.
base.NotifyPaintingComplete(this.sequentialPaintingToken, e);
}
}
}
</code>
</example>
</member>
<member name="M:OpenNETCF.Windows.Forms.ButtonBase2.OnPaintBackground(System.Windows.Forms.PaintEventArgs)">
<summary>
Paints the background of the control.
</summary>
<param name="e">A PaintEventArgs that contains information about the control to paint.</param>
<remarks>
<b>Notes to Inheritors:</b> With the the hope of preventing noticeable flicker, this method has be overridden to do nothing. Therefore, all painting should be done in the OnPaint method.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -