Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / SelectedCellsChangedEventArgs.cs / 1305600 / SelectedCellsChangedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; namespace System.Windows.Controls { ////// Communicates which cells were added or removed from the SelectedCells collection. /// public class SelectedCellsChangedEventArgs : EventArgs { ////// Creates a new instance of this class. /// /// The cells that were added. Must be non-null, but may be empty. /// The cells that were removed. Must be non-null, but may be empty. public SelectedCellsChangedEventArgs(ListaddedCells, List removedCells) { if (addedCells == null) { throw new ArgumentNullException("addedCells"); } if (removedCells == null) { throw new ArgumentNullException("removedCells"); } _addedCells = addedCells.AsReadOnly(); _removedCells = removedCells.AsReadOnly(); } /// /// Creates a new instance of this class. /// /// The cells that were added. Must be non-null, but may be empty. /// The cells that were removed. Must be non-null, but may be empty. public SelectedCellsChangedEventArgs(ReadOnlyCollectionaddedCells, ReadOnlyCollection removedCells) { if (addedCells == null) { throw new ArgumentNullException("addedCells"); } if (removedCells == null) { throw new ArgumentNullException("removedCells"); } _addedCells = addedCells; _removedCells = removedCells; } internal SelectedCellsChangedEventArgs(DataGrid owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells) { _addedCells = (addedCells != null) ? addedCells : VirtualizedCellInfoCollection.MakeEmptyCollection(owner); _removedCells = (removedCells != null) ? removedCells : VirtualizedCellInfoCollection.MakeEmptyCollection(owner); Debug.Assert(_addedCells.IsReadOnly, "_addedCells should have ended up as read-only."); Debug.Assert(_removedCells.IsReadOnly, "_removedCells should have ended up as read-only."); } /// /// The cells that were added. /// public IListAddedCells { get { return _addedCells; } } /// /// The cells that were removed. /// public IListRemovedCells { get { return _removedCells; } } private IList _addedCells; private IList _removedCells; } } // 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
- GridViewUpdateEventArgs.cs
- Directory.cs
- DirectoryObjectSecurity.cs
- COAUTHIDENTITY.cs
- OleDbException.cs
- ModelItemImpl.cs
- UnmanagedMemoryStreamWrapper.cs
- RootBrowserWindowAutomationPeer.cs
- FacetValues.cs
- JpegBitmapEncoder.cs
- Serializer.cs
- HttpHandlerActionCollection.cs
- GroupJoinQueryOperator.cs
- ReadOnlyCollection.cs
- ModifyActivitiesPropertyDescriptor.cs
- LOSFormatter.cs
- ActivityTypeCodeDomSerializer.cs
- ContextDataSourceContextData.cs
- SchemaType.cs
- AutomationPropertyInfo.cs
- WindowsPen.cs
- Link.cs
- RegularExpressionValidator.cs
- DependencyPropertyKey.cs
- DataRowCollection.cs
- Exceptions.cs
- FreezableOperations.cs
- _Events.cs
- BufferBuilder.cs
- CategoriesDocument.cs
- NavigateUrlConverter.cs
- OrderToken.cs
- StringBlob.cs
- RotateTransform.cs
- SqlSelectStatement.cs
- StrokeDescriptor.cs
- CrossAppDomainChannel.cs
- WorkflowRuntimeServiceElement.cs
- JapaneseCalendar.cs
- Simplifier.cs
- NavigationProgressEventArgs.cs
- OdbcCommand.cs
- XmlSchema.cs
- ObjectDataSourceFilteringEventArgs.cs
- HexParser.cs
- RemoteWebConfigurationHostStream.cs
- FrameworkElement.cs
- SortFieldComparer.cs
- ExtendedPropertyDescriptor.cs
- SmtpLoginAuthenticationModule.cs
- XmlUtilWriter.cs
- SerializationInfo.cs
- StatusBarItemAutomationPeer.cs
- UIElement3D.cs
- WbmpConverter.cs
- Label.cs
- TableLayoutSettings.cs
- WizardDesigner.cs
- ZoomPercentageConverter.cs
- Bold.cs
- LoginCancelEventArgs.cs
- UrlAuthFailedErrorFormatter.cs
- ObjectNavigationPropertyMapping.cs
- BasicCellRelation.cs
- NavigationFailedEventArgs.cs
- XmlFormatExtensionAttribute.cs
- ProgramPublisher.cs
- XmlDocumentViewSchema.cs
- OciHandle.cs
- sqlnorm.cs
- Filter.cs
- HtmlTable.cs
- NativeActivityContext.cs
- coordinator.cs
- IgnoreFlushAndCloseStream.cs
- PolicyChain.cs
- TabControlCancelEvent.cs
- Simplifier.cs
- Main.cs
- HTTPNotFoundHandler.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ObjectAnimationUsingKeyFrames.cs
- NamespaceEmitter.cs
- CompatibleComparer.cs
- StandardMenuStripVerb.cs
- BindingCollection.cs
- WrapperSecurityCommunicationObject.cs
- WebPartUserCapability.cs
- NavigationFailedEventArgs.cs
- FormViewDeletedEventArgs.cs
- SqlDataSourceView.cs
- ToolStripStatusLabel.cs
- KernelTypeValidation.cs
- Control.cs
- NameGenerator.cs
- SoapMessage.cs
- TargetControlTypeCache.cs
- TypeUtil.cs
- OrderingInfo.cs
- NotFiniteNumberException.cs