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 / SplitterCancelEvent.cs / 1 / SplitterCancelEvent.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.
///
///
public class SplitterCancelEventArgs : CancelEventArgs {
private readonly int mouseCursorX;
private readonly int mouseCursorY;
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 SplitterCancelEventArgs(int mouseCursorX, int mouseCursorY, int splitX, int splitY)
: base (false) {
this.mouseCursorX = mouseCursorX;
this.mouseCursorY = mouseCursorY;
this.splitX = splitX;
this.splitY = splitY;
}
///
///
///
/// Gets the x-coordinate of the
/// mouse pointer (in client coordinates).
///
///
public int MouseCursorX {
get {
return mouseCursorX;
}
}
///
///
///
/// Gets the y-coordinate of the mouse pointer (in
/// client coordinates).
///
///
public int MouseCursorY {
get {
return mouseCursorY;
}
}
///
///
///
/// 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.
///
///
public class SplitterCancelEventArgs : CancelEventArgs {
private readonly int mouseCursorX;
private readonly int mouseCursorY;
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 SplitterCancelEventArgs(int mouseCursorX, int mouseCursorY, int splitX, int splitY)
: base (false) {
this.mouseCursorX = mouseCursorX;
this.mouseCursorY = mouseCursorY;
this.splitX = splitX;
this.splitY = splitY;
}
///
///
///
/// Gets the x-coordinate of the
/// mouse pointer (in client coordinates).
///
///
public int MouseCursorX {
get {
return mouseCursorX;
}
}
///
///
///
/// Gets the y-coordinate of the mouse pointer (in
/// client coordinates).
///
///
public int MouseCursorY {
get {
return mouseCursorY;
}
}
///
///
///
/// 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
- TreeNodeBinding.cs
- SqlDataSourceFilteringEventArgs.cs
- ListViewUpdateEventArgs.cs
- RegexCompilationInfo.cs
- Compiler.cs
- HtmlInputSubmit.cs
- DependencyPropertyChangedEventArgs.cs
- FindCriteria.cs
- WmpBitmapEncoder.cs
- RSACryptoServiceProvider.cs
- ProfileSettings.cs
- SchemaImporterExtensionElement.cs
- HtmlLink.cs
- DefaultSettingsSection.cs
- SecurityKeyIdentifier.cs
- RTLAwareMessageBox.cs
- DbConvert.cs
- MouseEvent.cs
- StrokeCollection2.cs
- RemotingAttributes.cs
- SendMailErrorEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SoundPlayerAction.cs
- DataGridViewElement.cs
- ByteKeyFrameCollection.cs
- SqlInternalConnection.cs
- DecimalConstantAttribute.cs
- Rijndael.cs
- ColorBuilder.cs
- AddInBase.cs
- AutoResetEvent.cs
- RoutedEventArgs.cs
- X509AsymmetricSecurityKey.cs
- DataSourceHelper.cs
- MultilineStringConverter.cs
- CodeSubDirectory.cs
- DebugManager.cs
- DefaultPrintController.cs
- SqlAliasesReferenced.cs
- MergablePropertyAttribute.cs
- TreeViewImageIndexConverter.cs
- SaveFileDialog.cs
- Lease.cs
- SQLConvert.cs
- SurrogateSelector.cs
- TextSearch.cs
- WebHeaderCollection.cs
- DetailsViewDeletedEventArgs.cs
- IisTraceListener.cs
- TCEAdapterGenerator.cs
- IconBitmapDecoder.cs
- ContentAlignmentEditor.cs
- DeliveryRequirementsAttribute.cs
- SelectionItemPattern.cs
- ComAdminWrapper.cs
- SecureStringHasher.cs
- PageRequestManager.cs
- StrongName.cs
- SymmetricAlgorithm.cs
- AnnotationAuthorChangedEventArgs.cs
- FixUp.cs
- CodeGeneratorOptions.cs
- DataStreamFromComStream.cs
- TextDecoration.cs
- TdsValueSetter.cs
- AssemblyFilter.cs
- UndoEngine.cs
- ContextInformation.cs
- MeasureItemEvent.cs
- sqlmetadatafactory.cs
- PropertyTab.cs
- SQLMembershipProvider.cs
- FormViewInsertedEventArgs.cs
- GridItemProviderWrapper.cs
- EntityDataSourceSelectedEventArgs.cs
- Parser.cs
- LicenseProviderAttribute.cs
- ReferenceSchema.cs
- xdrvalidator.cs
- DecimalFormatter.cs
- BinaryMessageFormatter.cs
- Normalization.cs
- BitmapScalingModeValidation.cs
- InnerItemCollectionView.cs
- OdbcEnvironment.cs
- ComponentResourceManager.cs
- WindowsListViewGroupSubsetLink.cs
- Vector3D.cs
- PageAsyncTask.cs
- AttributeEmitter.cs
- PreparingEnlistment.cs
- XPathChildIterator.cs
- StructuredTypeInfo.cs
- UserControlAutomationPeer.cs
- OrderedDictionaryStateHelper.cs
- CacheHelper.cs
- ExtractorMetadata.cs
- FileLogRecordHeader.cs
- TemplateComponentConnector.cs
- ToolStripItemEventArgs.cs