Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SeparatorAutomationPeer.cs
- MetadataUtil.cs
- SegmentTree.cs
- SystemFonts.cs
- ReadonlyMessageFilter.cs
- AuthenticationModuleElementCollection.cs
- Dynamic.cs
- CipherData.cs
- HttpContext.cs
- CodeTypeMemberCollection.cs
- DisplayMemberTemplateSelector.cs
- ChildChangedEventArgs.cs
- FacetDescriptionElement.cs
- EntityCommandDefinition.cs
- SymDocumentType.cs
- Vector3dCollection.cs
- NotificationContext.cs
- ISAPIApplicationHost.cs
- ExpressionBindings.cs
- WindowsProgressbar.cs
- FillErrorEventArgs.cs
- BamlRecords.cs
- ParenthesizePropertyNameAttribute.cs
- EnvelopedPkcs7.cs
- SystemColors.cs
- TaskFormBase.cs
- XhtmlBasicLiteralTextAdapter.cs
- DataShape.cs
- QueryResponse.cs
- MinMaxParagraphWidth.cs
- QilInvokeEarlyBound.cs
- FloaterParagraph.cs
- InternalBase.cs
- StringUtil.cs
- AbandonedMutexException.cs
- DragEvent.cs
- EntityDataSourceColumn.cs
- SqlCacheDependencySection.cs
- ProcessManager.cs
- SignatureDescription.cs
- COM2AboutBoxPropertyDescriptor.cs
- FontTypeConverter.cs
- DynamicResourceExtensionConverter.cs
- XmlName.cs
- PerspectiveCamera.cs
- XPathNode.cs
- BulletDecorator.cs
- Material.cs
- QuaternionKeyFrameCollection.cs
- ParserOptions.cs
- EntityCollection.cs
- GeometryModel3D.cs
- XmlSchemaSimpleContentExtension.cs
- XmlObjectSerializer.cs
- SvcMapFileSerializer.cs
- WebException.cs
- OperationContext.cs
- DataGridViewSelectedCellCollection.cs
- PtsHelper.cs
- _ConnectStream.cs
- DigitalSignature.cs
- XmlUtil.cs
- PerformanceCounterLib.cs
- XslTransform.cs
- ErrorActivity.cs
- ProxyWebPartManager.cs
- DiagnosticTrace.cs
- safelink.cs
- Point3D.cs
- VScrollBar.cs
- XmlResolver.cs
- TextParagraph.cs
- RegionData.cs
- DesignOnlyAttribute.cs
- AbstractExpressions.cs
- CodeSnippetExpression.cs
- WebPartUtil.cs
- StagingAreaInputItem.cs
- CreateUserErrorEventArgs.cs
- ClipboardData.cs
- PageParserFilter.cs
- ConnectionInterfaceCollection.cs
- AssemblyBuilder.cs
- FixedSchema.cs
- UMPAttributes.cs
- NotifyParentPropertyAttribute.cs
- KeyValuePair.cs
- SmiRequestExecutor.cs
- TransactionException.cs
- SortedDictionary.cs
- HandlerBase.cs
- COM2FontConverter.cs
- TypeExtensions.cs
- StrokeSerializer.cs
- XmlDataProvider.cs
- HttpGetClientProtocol.cs
- MatrixKeyFrameCollection.cs
- HttpServerVarsCollection.cs
- SymmetricAlgorithm.cs
- WebBrowserEvent.cs