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
- DynamicValidatorEventArgs.cs
- ElementsClipboardData.cs
- VisualTransition.cs
- TextEditorCopyPaste.cs
- ComponentSerializationService.cs
- FixedPosition.cs
- SdlChannelSink.cs
- NativeObjectSecurity.cs
- XmlSchemaValidationException.cs
- MenuItem.cs
- AvTraceDetails.cs
- ToggleButton.cs
- ModelPerspective.cs
- EventWaitHandleSecurity.cs
- DeclarativeExpressionConditionDeclaration.cs
- DBCommand.cs
- TextureBrush.cs
- RegexBoyerMoore.cs
- AstTree.cs
- SmtpTransport.cs
- HostingEnvironmentException.cs
- EntityDataSourceSelectingEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- SelectedDatesCollection.cs
- WebConvert.cs
- WaitHandleCannotBeOpenedException.cs
- AutomationEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- VectorConverter.cs
- DiagnosticsConfiguration.cs
- DictionaryKeyPropertyAttribute.cs
- _BaseOverlappedAsyncResult.cs
- Trace.cs
- CultureInfoConverter.cs
- WebPartConnection.cs
- StyleBamlRecordReader.cs
- WebPartEditorCancelVerb.cs
- Hex.cs
- CodeArrayCreateExpression.cs
- LiteralControl.cs
- ErasingStroke.cs
- ImageSourceTypeConverter.cs
- ServiceObjectContainer.cs
- HierarchicalDataTemplate.cs
- SoapUnknownHeader.cs
- Transform3D.cs
- Object.cs
- AggregateException.cs
- Lease.cs
- _DigestClient.cs
- CorrelationManager.cs
- SapiGrammar.cs
- Selection.cs
- AmbientProperties.cs
- SafeLocalMemHandle.cs
- GlobalDataBindingHandler.cs
- TextSelectionHelper.cs
- UiaCoreApi.cs
- BinaryObjectInfo.cs
- ListenerElementsCollection.cs
- PersistenceTypeAttribute.cs
- EntityWithChangeTrackerStrategy.cs
- XmlBinaryReader.cs
- ResourceReader.cs
- VideoDrawing.cs
- TextServicesLoader.cs
- BooleanExpr.cs
- CommentAction.cs
- PermissionSetTriple.cs
- CheckableControlBaseAdapter.cs
- PrinterResolution.cs
- FolderLevelBuildProviderCollection.cs
- XmlDictionaryWriter.cs
- DetailsViewDeleteEventArgs.cs
- SapiGrammar.cs
- GuidTagList.cs
- StaticSiteMapProvider.cs
- RowUpdatedEventArgs.cs
- UInt16Converter.cs
- DependencyPropertyHelper.cs
- PermissionRequestEvidence.cs
- CompositeKey.cs
- NetTcpSectionData.cs
- SqlUserDefinedTypeAttribute.cs
- LocatorBase.cs
- BindingList.cs
- DecoderNLS.cs
- InvocationExpression.cs
- CalloutQueueItem.cs
- oledbmetadatacollectionnames.cs
- TypeUtils.cs
- ClassHandlersStore.cs
- DBCSCodePageEncoding.cs
- ColorConvertedBitmap.cs
- WebPartManager.cs
- SqlBooleanizer.cs
- login.cs
- SingleAnimationBase.cs
- SqlConnectionManager.cs
- MethodAccessException.cs