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
- TextContainerChangedEventArgs.cs
- DataTransferEventArgs.cs
- OdbcInfoMessageEvent.cs
- UrlPath.cs
- PermissionToken.cs
- OdbcRowUpdatingEvent.cs
- ConcurrentQueue.cs
- EmitterCache.cs
- BCLDebug.cs
- MetadataPropertyvalue.cs
- MetaModel.cs
- ServiceRouteHandler.cs
- ResXDataNode.cs
- CollectionViewGroupRoot.cs
- AssemblyCache.cs
- CommandManager.cs
- BitmapScalingModeValidation.cs
- InputScopeNameConverter.cs
- EntityClassGenerator.cs
- ToolZoneDesigner.cs
- WorkflowItemPresenter.cs
- PackWebRequestFactory.cs
- SignatureDescription.cs
- Positioning.cs
- DataGridViewColumn.cs
- ThreadStateException.cs
- NavigationHelper.cs
- OleDbError.cs
- XmlILTrace.cs
- MatrixCamera.cs
- RelationshipFixer.cs
- ConfigurationLoader.cs
- StorageMappingFragment.cs
- PersistChildrenAttribute.cs
- SettingsSavedEventArgs.cs
- ModifierKeysConverter.cs
- RawAppCommandInputReport.cs
- DesignerActionKeyboardBehavior.cs
- TextEditorMouse.cs
- InvokeGenerator.cs
- NavigationProperty.cs
- UniqueSet.cs
- ReturnValue.cs
- SQLChars.cs
- WorkflowServiceHost.cs
- HttpChannelBindingToken.cs
- Win32.cs
- DataGridViewRow.cs
- UseManagedPresentationBindingElementImporter.cs
- RenderContext.cs
- HierarchicalDataBoundControl.cs
- GroupStyle.cs
- IgnoreFileBuildProvider.cs
- StylusDevice.cs
- EditBehavior.cs
- _NetworkingPerfCounters.cs
- followingquery.cs
- ModelVisual3D.cs
- Compensation.cs
- ItemsChangedEventArgs.cs
- _AuthenticationState.cs
- TextPattern.cs
- sqlser.cs
- SystemEvents.cs
- FileIOPermission.cs
- DataSourceHelper.cs
- CuspData.cs
- ElementNotEnabledException.cs
- XmlHierarchicalDataSourceView.cs
- MemberHolder.cs
- grammarelement.cs
- XmlIterators.cs
- CFStream.cs
- Point3DAnimationBase.cs
- HtmlTextArea.cs
- TemplateKey.cs
- SynchronousReceiveBehavior.cs
- ColorContextHelper.cs
- HttpServerUtilityWrapper.cs
- SchemaCollectionPreprocessor.cs
- XmlElementList.cs
- HitTestWithPointDrawingContextWalker.cs
- GcHandle.cs
- ContextMenu.cs
- SvcMapFileLoader.cs
- AdPostCacheSubstitution.cs
- _FtpControlStream.cs
- CommandBinding.cs
- BitmapScalingModeValidation.cs
- DataGridViewColumnTypePicker.cs
- TextViewBase.cs
- TextDecorationCollection.cs
- DataGridTemplateColumn.cs
- SqlDataSource.cs
- XmlTypeMapping.cs
- GradientStop.cs
- objectresult_tresulttype.cs
- WindowsListBox.cs
- Binding.cs
- ObjectStateManagerMetadata.cs