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
- DynamicMethod.cs
- Attachment.cs
- TimerElapsedEvenArgs.cs
- PathFigureCollectionConverter.cs
- TextBoxAutomationPeer.cs
- PrtCap_Public_Simple.cs
- WebControlAdapter.cs
- OneOfScalarConst.cs
- AssociationSetMetadata.cs
- BitmapEncoder.cs
- ToolTipAutomationPeer.cs
- XmlSchemaGroupRef.cs
- AssemblyCollection.cs
- SqlNotificationRequest.cs
- Graph.cs
- CommandHelper.cs
- StrokeDescriptor.cs
- xmlglyphRunInfo.cs
- PatternMatcher.cs
- MethodBody.cs
- BitmapScalingModeValidation.cs
- WorkflowQueueInfo.cs
- WmlObjectListAdapter.cs
- TreeView.cs
- AnnotationResourceChangedEventArgs.cs
- Privilege.cs
- SequenceFullException.cs
- DocumentGrid.cs
- BlurBitmapEffect.cs
- PerspectiveCamera.cs
- ControlBuilderAttribute.cs
- RemoteWebConfigurationHostServer.cs
- NullRuntimeConfig.cs
- Nullable.cs
- X509PeerCertificateAuthentication.cs
- InstanceValue.cs
- SmiXetterAccessMap.cs
- DataServiceRequestOfT.cs
- SqlCharStream.cs
- SqlNotificationRequest.cs
- OutputCacheModule.cs
- TypeInfo.cs
- FeatureSupport.cs
- AssemblyAttributesGoHere.cs
- TransactionContextValidator.cs
- PrivilegeNotHeldException.cs
- ListViewEditEventArgs.cs
- PermissionAttributes.cs
- ElementHostPropertyMap.cs
- PasswordTextContainer.cs
- HealthMonitoringSection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- TextWriter.cs
- MonthChangedEventArgs.cs
- EditingScopeUndoUnit.cs
- XmlHierarchicalEnumerable.cs
- WindowsToolbarItemAsMenuItem.cs
- SerializationStore.cs
- RequestQueue.cs
- DocumentPageView.cs
- Unit.cs
- ButtonChrome.cs
- Dispatcher.cs
- Model3DGroup.cs
- TraceLog.cs
- NeutralResourcesLanguageAttribute.cs
- OneOfElement.cs
- OpenFileDialog.cs
- Native.cs
- WebColorConverter.cs
- SoapReflectionImporter.cs
- DataGridClipboardHelper.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CodePageUtils.cs
- RemotingSurrogateSelector.cs
- DoubleLinkList.cs
- EdmToObjectNamespaceMap.cs
- TextBoxView.cs
- GraphicsState.cs
- LocalFileSettingsProvider.cs
- Vector3dCollection.cs
- FixUp.cs
- XamlFigureLengthSerializer.cs
- StreamInfo.cs
- TTSEvent.cs
- CharEnumerator.cs
- ProgressBarHighlightConverter.cs
- FileLevelControlBuilderAttribute.cs
- MouseActionValueSerializer.cs
- CodeMethodReturnStatement.cs
- RectAnimationClockResource.cs
- UpdatePanelControlTrigger.cs
- EditorZoneAutoFormat.cs
- AnnotationHighlightLayer.cs
- WebServiceMethodData.cs
- SessionSwitchEventArgs.cs
- RegistryDataKey.cs
- PropertyMap.cs
- Package.cs
- PointAnimation.cs