Code:
/ DotNET / DotNET / 8.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
- WindowsFormsSynchronizationContext.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- RoleBoolean.cs
- MetadataItemCollectionFactory.cs
- TypeDescriptor.cs
- ToolStripContentPanelDesigner.cs
- Matrix.cs
- XPathDocumentIterator.cs
- WebSysDisplayNameAttribute.cs
- SurrogateEncoder.cs
- PageAsyncTask.cs
- EntityProxyFactory.cs
- ThrowHelper.cs
- Propagator.cs
- VBIdentifierDesigner.xaml.cs
- SQLDecimal.cs
- SmtpLoginAuthenticationModule.cs
- ReferencedAssembly.cs
- EntityViewGenerationConstants.cs
- DbSetClause.cs
- ActivityBuilderXamlWriter.cs
- SkewTransform.cs
- UserPreferenceChangedEventArgs.cs
- CompositeScriptReference.cs
- EventManager.cs
- TokenCreationException.cs
- SchemaTypeEmitter.cs
- CorrelationValidator.cs
- SelectionRange.cs
- DocumentXPathNavigator.cs
- HierarchicalDataSourceDesigner.cs
- PriorityQueue.cs
- NumericUpDown.cs
- XmlNamespaceMappingCollection.cs
- TextBox.cs
- DivideByZeroException.cs
- ChangeInterceptorAttribute.cs
- Converter.cs
- PointAnimationClockResource.cs
- HtmlInputButton.cs
- XmlDataLoader.cs
- EdgeModeValidation.cs
- RadioButton.cs
- CheckBoxRenderer.cs
- FlowPosition.cs
- TraceShell.cs
- GlyphRun.cs
- XmlHierarchyData.cs
- IntersectQueryOperator.cs
- TextTreeInsertElementUndoUnit.cs
- StreamInfo.cs
- SystemTcpStatistics.cs
- CaretElement.cs
- WebConfigurationHost.cs
- TrackingWorkflowEventArgs.cs
- CollectionAdapters.cs
- TemplateBindingExpressionConverter.cs
- WebContentFormatHelper.cs
- EmbeddedMailObjectsCollection.cs
- SynchronizationLockException.cs
- MetadataArtifactLoaderCompositeFile.cs
- InkCanvasSelection.cs
- BoolExpr.cs
- CompiledQueryCacheKey.cs
- LayoutTableCell.cs
- LinkLabelLinkClickedEvent.cs
- ThaiBuddhistCalendar.cs
- ContractMapping.cs
- XmlDataImplementation.cs
- PointKeyFrameCollection.cs
- WebPartsPersonalization.cs
- OleServicesContext.cs
- HwndSourceKeyboardInputSite.cs
- HttpRequest.cs
- JournalNavigationScope.cs
- InputScope.cs
- DelegateArgumentReference.cs
- RestHandler.cs
- SafeThreadHandle.cs
- CaseCqlBlock.cs
- FontDifferentiator.cs
- Vector3DAnimation.cs
- ProfileSettingsCollection.cs
- TrackingProfileSerializer.cs
- NullableDecimalMinMaxAggregationOperator.cs
- AutoGeneratedFieldProperties.cs
- DataObjectAttribute.cs
- Signature.cs
- UseAttributeSetsAction.cs
- DropShadowEffect.cs
- Binding.cs
- WindowsFormsSynchronizationContext.cs
- TypeForwardedFromAttribute.cs
- HitTestWithPointDrawingContextWalker.cs
- RSACryptoServiceProvider.cs
- MaskedTextBoxDesignerActionList.cs
- ReadOnlyTernaryTree.cs
- StickyNoteHelper.cs
- UrlMappingCollection.cs
- ColorMap.cs