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 / LabelEditEvent.cs / 1 / LabelEditEvent.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; ////// /// public class LabelEditEventArgs : EventArgs { private readonly string label; private readonly int item; private bool cancelEdit = false; ////// Provides data for the ///event. /// /// /// public LabelEditEventArgs(int item) { this.item = item; this.label = null; } ////// Initializes a new instance /// of the ///class with the specified /// index to the to edit. /// /// /// public LabelEditEventArgs(int item, string label) { this.item = item; this.label = label; } ////// Initializes a new instance /// of the ///class with the specified index to the being /// edited and the new text for the label of the . /// /// /// public string Label { get { return label; } } ////// Gets the new text assigned to the label of the ///. /// /// /// public int Item { get { return item; } } ////// Gets the zero-based index of the ///containing the label to /// edit. /// /// /// public bool CancelEdit { get { return cancelEdit; } set { cancelEdit = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets a value indicating whether changes made to the label of /// the ///should be canceled. /// // 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; ////// /// public class LabelEditEventArgs : EventArgs { private readonly string label; private readonly int item; private bool cancelEdit = false; ////// Provides data for the ///event. /// /// /// public LabelEditEventArgs(int item) { this.item = item; this.label = null; } ////// Initializes a new instance /// of the ///class with the specified /// index to the to edit. /// /// /// public LabelEditEventArgs(int item, string label) { this.item = item; this.label = label; } ////// Initializes a new instance /// of the ///class with the specified index to the being /// edited and the new text for the label of the . /// /// /// public string Label { get { return label; } } ////// Gets the new text assigned to the label of the ///. /// /// /// public int Item { get { return item; } } ////// Gets the zero-based index of the ///containing the label to /// edit. /// /// /// public bool CancelEdit { get { return cancelEdit; } set { cancelEdit = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets a value indicating whether changes made to the label of /// the ///should be canceled. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- controlskin.cs
- SerializationException.cs
- FontFamilyValueSerializer.cs
- DataSourceView.cs
- XamlSerializerUtil.cs
- UrlSyndicationContent.cs
- DrawTreeNodeEventArgs.cs
- RootBrowserWindow.cs
- ToolStripGripRenderEventArgs.cs
- ExpressionBindingsDialog.cs
- ConstantCheck.cs
- DataGridViewSortCompareEventArgs.cs
- CommandPlan.cs
- FrameworkElementFactoryMarkupObject.cs
- IndependentlyAnimatedPropertyMetadata.cs
- MdImport.cs
- DebugView.cs
- DataBindingExpressionBuilder.cs
- ISAPIWorkerRequest.cs
- CodeExporter.cs
- WindowsScrollBar.cs
- WebRequestModuleElementCollection.cs
- CatalogZoneBase.cs
- ToolStripSplitStackLayout.cs
- PrivateFontCollection.cs
- WebPartCloseVerb.cs
- EntityParameter.cs
- DependencySource.cs
- PlatformCulture.cs
- IODescriptionAttribute.cs
- ScrollContentPresenter.cs
- ConstraintManager.cs
- ReturnType.cs
- IntegerValidatorAttribute.cs
- MediaEntryAttribute.cs
- ProcessThread.cs
- ComboBox.cs
- XmlSchemaAttribute.cs
- CompareInfo.cs
- IndexOutOfRangeException.cs
- FormatControl.cs
- Point4D.cs
- TypedAsyncResult.cs
- DiagnosticTrace.cs
- CustomWebEventKey.cs
- XPathNodeList.cs
- CellConstant.cs
- QueryExecutionOption.cs
- DataColumnMapping.cs
- UnknownWrapper.cs
- GraphicsContext.cs
- ColorContextHelper.cs
- ArgumentOutOfRangeException.cs
- WebHttpBehavior.cs
- DataMemberFieldEditor.cs
- LiteralControl.cs
- SafeSecurityHandles.cs
- LogRestartAreaEnumerator.cs
- ContextMenu.cs
- VirtualDirectoryMappingCollection.cs
- XmlDocument.cs
- HttpCachePolicyElement.cs
- StandardRuntimeEnumValidator.cs
- ParameterElementCollection.cs
- JsonFormatReaderGenerator.cs
- TreeNodeStyle.cs
- ProxyWebPart.cs
- EventSinkHelperWriter.cs
- EdmValidator.cs
- FileLoadException.cs
- PropertyDescriptorComparer.cs
- ViewCellSlot.cs
- StreamUpgradeProvider.cs
- SimpleRecyclingCache.cs
- ToolStripManager.cs
- LambdaCompiler.Unary.cs
- FixedTextPointer.cs
- InvalidAsynchronousStateException.cs
- ListSourceHelper.cs
- MemberCollection.cs
- PermissionSetTriple.cs
- DataTransferEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- DBSchemaRow.cs
- PropertyStore.cs
- basecomparevalidator.cs
- WebPartEditVerb.cs
- CreatingCookieEventArgs.cs
- SqlUnionizer.cs
- Matrix3D.cs
- DbProviderFactories.cs
- Separator.cs
- ComEventsMethod.cs
- GPPOINTF.cs
- EdmType.cs
- AndCondition.cs
- WindowsToolbar.cs
- WsatExtendedInformation.cs
- CategoriesDocument.cs
- StrongNameMembershipCondition.cs