Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripLocationCancelEventArgs.cs / 1 / ToolStripLocationCancelEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.ComponentModel;
using System.Diagnostics;
using System;
using System.Drawing;
///
///
///
/// ToolStripLocationCancelEventArgs provides Arguments for the Cancelable LocationChanging Event.
/// event.
///
///
internal class ToolStripLocationCancelEventArgs : CancelEventArgs {
private Point newLocation;
///
///
///
/// Initializes a new instance of the ToolStripLocationCancelEventArgs with cancel value.
///
///
public ToolStripLocationCancelEventArgs(Point newLocation, bool value) : base(value) {
this.newLocation = newLocation;
}
///
///
///
/// Returns the New Location of the ToolStrip.
///
///
public Point NewLocation {
get {
return this.newLocation;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.ComponentModel;
using System.Diagnostics;
using System;
using System.Drawing;
///
///
///
/// ToolStripLocationCancelEventArgs provides Arguments for the Cancelable LocationChanging Event.
/// event.
///
///
internal class ToolStripLocationCancelEventArgs : CancelEventArgs {
private Point newLocation;
///
///
///
/// Initializes a new instance of the ToolStripLocationCancelEventArgs with cancel value.
///
///
public ToolStripLocationCancelEventArgs(Point newLocation, bool value) : base(value) {
this.newLocation = newLocation;
}
///
///
///
/// Returns the New Location of the ToolStrip.
///
///
public Point NewLocation {
get {
return this.newLocation;
}
}
}
}
// 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
- RootBrowserWindowAutomationPeer.cs
- MobileControlDesigner.cs
- CheckBoxPopupAdapter.cs
- CheckedPointers.cs
- DataGridItemEventArgs.cs
- DbParameterHelper.cs
- OutputCacheSettingsSection.cs
- MetadataPropertyvalue.cs
- GeneralTransform3D.cs
- Literal.cs
- LinqDataSourceValidationException.cs
- InputScopeManager.cs
- XsltLoader.cs
- DirectoryObjectSecurity.cs
- CryptoStream.cs
- ZipFileInfo.cs
- SettingsContext.cs
- XmlWriterSettings.cs
- WindowsListViewItem.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- HtmlTitle.cs
- CodeAttributeArgumentCollection.cs
- UshortList2.cs
- XmlSchemaCompilationSettings.cs
- LockRecursionException.cs
- PropertyGeneratedEventArgs.cs
- SortFieldComparer.cs
- StructuralObject.cs
- OleDbReferenceCollection.cs
- DecoderExceptionFallback.cs
- AssemblyInfo.cs
- ZoneIdentityPermission.cs
- RoutedEventConverter.cs
- CanonicalXml.cs
- AppDomainInstanceProvider.cs
- HttpModuleAction.cs
- HorizontalAlignConverter.cs
- BrowserDefinitionCollection.cs
- OpenTypeLayout.cs
- SequenceFullException.cs
- ApplicationContext.cs
- WeakEventTable.cs
- WebColorConverter.cs
- TextBox.cs
- MediaTimeline.cs
- HexParser.cs
- LocatorManager.cs
- TransactionTable.cs
- PhoneCall.cs
- SettingsPropertyIsReadOnlyException.cs
- CroppedBitmap.cs
- SqlStream.cs
- CultureInfoConverter.cs
- Monitor.cs
- SectionRecord.cs
- DeferredTextReference.cs
- PasswordRecovery.cs
- TriggerBase.cs
- ObjectStateManagerMetadata.cs
- ListViewEditEventArgs.cs
- BitmapSourceSafeMILHandle.cs
- Fault.cs
- SelectionGlyph.cs
- ModelUIElement3D.cs
- Trigger.cs
- OpenTypeLayoutCache.cs
- DataGridViewCellValueEventArgs.cs
- BufferBuilder.cs
- Invariant.cs
- LicenseException.cs
- Compiler.cs
- mda.cs
- Point4DConverter.cs
- PeerName.cs
- SettingsPropertyCollection.cs
- securitycriticaldata.cs
- ProviderBase.cs
- MetadataWorkspace.cs
- ReferenceTypeElement.cs
- KeySplineConverter.cs
- MenuBase.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- MachineKeyConverter.cs
- FormsIdentity.cs
- FileUtil.cs
- FactoryGenerator.cs
- _AutoWebProxyScriptHelper.cs
- CodeValidator.cs
- TemplateParser.cs
- MarkupCompilePass1.cs
- ListViewSelectEventArgs.cs
- CodeAttachEventStatement.cs
- MSAANativeProvider.cs
- StructuralObject.cs
- QueueProcessor.cs
- WsdlInspector.cs
- DateTimeFormatInfo.cs
- sqlnorm.cs
- EventMappingSettings.cs
- ObjectViewFactory.cs