Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / SplitterEvent.cs / 1 / SplitterEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
using System.Drawing;
using Microsoft.Win32;
///
///
///
/// Provides data for splitter events.
///
///
[System.Runtime.InteropServices.ComVisible(true)]
public class SplitterEventArgs : EventArgs {
private readonly int x;
private readonly int y;
private int splitX;
private int splitY;
///
///
///
/// Initializes an instance of the class with the specified coordinates
/// of the mouse pointer and the upper-left corner of the .
///
///
public SplitterEventArgs(int x, int y, int splitX, int splitY) {
this.x = x;
this.y = y;
this.splitX = splitX;
this.splitY = splitY;
}
///
///
///
/// Gets the x-coordinate of the
/// mouse pointer (in client coordinates).
///
///
public int X {
get {
return x;
}
}
///
///
///
/// Gets the y-coordinate of the mouse pointer (in
/// client coordinates).
///
///
public int Y {
get {
return y;
}
}
///
///
///
/// Gets the x-coordinate of the
/// upper-left corner of the (in client coordinates).
///
///
public int SplitX {
get {
return splitX;
}
set {
splitX = value;
}
}
///
///
///
/// Gets the y-coordinate of the upper-left corner of the (in client coordinates).
///
///
public int SplitY {
get {
return splitY;
}
set {
splitY = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
using System.Drawing;
using Microsoft.Win32;
///
///
///
/// Provides data for splitter events.
///
///
[System.Runtime.InteropServices.ComVisible(true)]
public class SplitterEventArgs : EventArgs {
private readonly int x;
private readonly int y;
private int splitX;
private int splitY;
///
///
///
/// Initializes an instance of the class with the specified coordinates
/// of the mouse pointer and the upper-left corner of the .
///
///
public SplitterEventArgs(int x, int y, int splitX, int splitY) {
this.x = x;
this.y = y;
this.splitX = splitX;
this.splitY = splitY;
}
///
///
///
/// Gets the x-coordinate of the
/// mouse pointer (in client coordinates).
///
///
public int X {
get {
return x;
}
}
///
///
///
/// Gets the y-coordinate of the mouse pointer (in
/// client coordinates).
///
///
public int Y {
get {
return y;
}
}
///
///
///
/// Gets the x-coordinate of the
/// upper-left corner of the (in client coordinates).
///
///
public int SplitX {
get {
return splitX;
}
set {
splitX = value;
}
}
///
///
///
/// Gets the y-coordinate of the upper-left corner of the (in client coordinates).
///
///
public int SplitY {
get {
return splitY;
}
set {
splitY = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RotateTransform3D.cs
- OfTypeExpression.cs
- XmlReflectionImporter.cs
- ConfigurationProviderException.cs
- CompatibleIComparer.cs
- PropertyTabAttribute.cs
- XmlSchemaDatatype.cs
- UInt64.cs
- DataSet.cs
- RawStylusInputReport.cs
- SvcMapFileLoader.cs
- TemplatedMailWebEventProvider.cs
- SoapHttpTransportImporter.cs
- DelegateTypeInfo.cs
- ZipFileInfoCollection.cs
- DependencySource.cs
- Stacktrace.cs
- TextUtf8RawTextWriter.cs
- LineVisual.cs
- parserscommon.cs
- ComboBoxItem.cs
- Itemizer.cs
- OrderByExpression.cs
- AssemblyFilter.cs
- codemethodreferenceexpression.cs
- HierarchicalDataBoundControlAdapter.cs
- DbQueryCommandTree.cs
- AttributeCollection.cs
- BasicCommandTreeVisitor.cs
- safex509handles.cs
- CultureInfo.cs
- FillBehavior.cs
- NavigateUrlConverter.cs
- Native.cs
- SqlCacheDependency.cs
- RequestResizeEvent.cs
- SqlException.cs
- XmlNode.cs
- PropertyValue.cs
- EventLogEntry.cs
- Int64Animation.cs
- ContextMarshalException.cs
- EmptyStringExpandableObjectConverter.cs
- SqlCommand.cs
- NavigatingCancelEventArgs.cs
- ScriptResourceHandler.cs
- ExtensionWindowHeader.cs
- CapabilitiesSection.cs
- CodeValidator.cs
- TreeNodeBindingCollection.cs
- WindowsScrollBar.cs
- Paragraph.cs
- SettingsSection.cs
- SelectionItemProviderWrapper.cs
- TextFormatterContext.cs
- EntityDataSourceDesigner.cs
- AttachedAnnotation.cs
- DBSchemaRow.cs
- OleDbRowUpdatingEvent.cs
- ResXFileRef.cs
- DbParameterHelper.cs
- JavascriptXmlWriterWrapper.cs
- RTLAwareMessageBox.cs
- RootBuilder.cs
- TypeEnumerableViewSchema.cs
- ValueOfAction.cs
- codemethodreferenceexpression.cs
- ValidationPropertyAttribute.cs
- DSASignatureDeformatter.cs
- TargetFrameworkUtil.cs
- TypeBuilderInstantiation.cs
- DbTransaction.cs
- IsolatedStorageFilePermission.cs
- RuntimeHandles.cs
- GetTokenRequest.cs
- ProfileBuildProvider.cs
- TrackingServices.cs
- InvokePattern.cs
- XhtmlBasicPhoneCallAdapter.cs
- CustomAttributeBuilder.cs
- DataRelationPropertyDescriptor.cs
- FixedSOMElement.cs
- LeftCellWrapper.cs
- WindowsListViewGroupSubsetLink.cs
- SwitchAttribute.cs
- SqlConnectionHelper.cs
- ListComponentEditor.cs
- DecoderNLS.cs
- X509RecipientCertificateClientElement.cs
- Vars.cs
- RetrieveVirtualItemEventArgs.cs
- ResourceProviderFactory.cs
- RoleService.cs
- XmlSchemaSimpleTypeUnion.cs
- WebPartDisplayModeCancelEventArgs.cs
- GeneratedCodeAttribute.cs
- WindowsTreeView.cs
- FileLoadException.cs
- TextServicesManager.cs
- SafeLibraryHandle.cs