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
- PersistenceTypeAttribute.cs
- PropertySourceInfo.cs
- SchemaImporterExtensionsSection.cs
- InvalidFilterCriteriaException.cs
- HostedBindingBehavior.cs
- LocalizedNameDescriptionPair.cs
- Italic.cs
- Attributes.cs
- CharacterBufferReference.cs
- TimeSpan.cs
- NullableIntMinMaxAggregationOperator.cs
- IgnoreFileBuildProvider.cs
- TailCallAnalyzer.cs
- GatewayDefinition.cs
- XmlDocumentFragment.cs
- TableCell.cs
- KeyPullup.cs
- QilChoice.cs
- IERequestCache.cs
- ParameterModifier.cs
- SHA256.cs
- OdbcEnvironment.cs
- IMembershipProvider.cs
- DependencyObjectPropertyDescriptor.cs
- PropertyPathConverter.cs
- SecurityElement.cs
- EpmTargetTree.cs
- StaticExtension.cs
- EntityTransaction.cs
- SafeHandles.cs
- XmlArrayItemAttribute.cs
- HorizontalAlignConverter.cs
- dataprotectionpermission.cs
- HttpWriter.cs
- DoubleUtil.cs
- TransactionScope.cs
- BlurEffect.cs
- Panel.cs
- MediaCommands.cs
- MetadataProperty.cs
- ActivityValidator.cs
- FrameworkObject.cs
- RunWorkerCompletedEventArgs.cs
- DataGridCellAutomationPeer.cs
- XmlSerializerImportOptions.cs
- BookmarkManager.cs
- __FastResourceComparer.cs
- Cursors.cs
- SchemaInfo.cs
- DataControlHelper.cs
- HtmlShimManager.cs
- TypeResolver.cs
- linebase.cs
- EmptyEnumerable.cs
- ErrorsHelper.cs
- ValidationHelper.cs
- WrappedIUnknown.cs
- BackgroundFormatInfo.cs
- SessionStateItemCollection.cs
- SelectionHighlightInfo.cs
- ScaleTransform3D.cs
- ExceptionRoutedEventArgs.cs
- Switch.cs
- BrowsableAttribute.cs
- PersonalizationStateInfo.cs
- DataShape.cs
- ExpressionLink.cs
- SimpleWebHandlerParser.cs
- DataGridViewTextBoxCell.cs
- NumericPagerField.cs
- BindingCollectionElement.cs
- InternalBufferManager.cs
- Converter.cs
- XamlInt32CollectionSerializer.cs
- CacheVirtualItemsEvent.cs
- AsyncOperation.cs
- ExtensionQuery.cs
- Table.cs
- IdentifierService.cs
- PerformanceCounterManager.cs
- WindowsSlider.cs
- ContextMenuService.cs
- XXXOnTypeBuilderInstantiation.cs
- TraceInternal.cs
- KeyedPriorityQueue.cs
- SqlDependencyUtils.cs
- Math.cs
- CalendarAutoFormat.cs
- TextFormattingConverter.cs
- SamlAuthorizationDecisionStatement.cs
- COM2Enum.cs
- HtmlInputHidden.cs
- ExpandCollapsePattern.cs
- SiteMapPath.cs
- XsltSettings.cs
- XAMLParseException.cs
- WebExceptionStatus.cs
- XmlNamespaceMapping.cs
- FontStyles.cs
- SrgsSemanticInterpretationTag.cs