Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Annotations / Storage / StoreContentChangedEventArgs.cs / 1 / StoreContentChangedEventArgs.cs
//------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // The AnnotationStore.StoreContentChanged event is generated when any // changes are made to an annotation in an AnnotationStore. // // File contains the StoreContentChangedEventArgs class, the // AnnotationStoreEnum and the StoreContentChangedEventHandler delegate. // Spec: [....]/sites/ag/Specifications/CAF%20Storage%20Spec.doc // // History: // 07/10/2003: [....]: Created (split from AnnotationStore.cs file). // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Xml; namespace System.Windows.Annotations.Storage { ////// Event handler delegate for AnnotationUpdated event. Listeners for /// this event must supply a delegate with this signature. /// /// AnnotationStore in which the change took place /// the event data public delegate void StoreContentChangedEventHandler(object sender, StoreContentChangedEventArgs e); ////// Possible actions performed on an IAnnotation in an AnnotationStore. /// public enum StoreContentAction { ////// Annotation was added to the store /// Added, ////// Annotation was deleted from the store /// Deleted } ////// The AnnotationUpdated event is generated when any changes are made /// to an annotation in an AnnotationStore. An instance of this class /// specifies the action that was taken and the IAnnotation that was /// acted upon. /// public class StoreContentChangedEventArgs : System.EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Creates an instance of AnnotationUpdatedEventArgs with the /// specified action and annotation. /// /// the action that was performed on an annotation /// the annotation that was updated public StoreContentChangedEventArgs(StoreContentAction action, Annotation annotation) { if (annotation == null) throw new ArgumentNullException("annotation"); _action = action; _annotation = annotation; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Operators // //------------------------------------------------------ //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties ////// Returns the IAnnotation that was updated. /// public Annotation Annotation { get { return _annotation; } } ////// Returns the action that was performed on the annotation. /// public StoreContentAction Action { get { return _action; } } #endregion Public Properties //----------------------------------------------------- // // Public Events // //----------------------------------------------------- //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private StoreContentAction _action; // action taken on the annotation private Annotation _annotation; // annotation that was updated #endregion Private Fields } } // 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
- cookieexception.cs
- PeerChannelListener.cs
- xsdvalidator.cs
- SelectionPattern.cs
- WebPartActionVerb.cs
- RemoteWebConfigurationHostServer.cs
- ProgressBarRenderer.cs
- UrlPath.cs
- FtpWebRequest.cs
- SimpleMailWebEventProvider.cs
- UInt32Converter.cs
- XhtmlBasicListAdapter.cs
- DataTrigger.cs
- ChannelPoolSettings.cs
- ReceiveContext.cs
- CatalogPartChrome.cs
- SoapProtocolReflector.cs
- RoleManagerSection.cs
- XhtmlBasicFormAdapter.cs
- BaseTemplateParser.cs
- WebPartVerb.cs
- IEnumerable.cs
- DragDrop.cs
- AtomServiceDocumentSerializer.cs
- ScriptHandlerFactory.cs
- XmlSchemaDocumentation.cs
- Error.cs
- MetadataArtifactLoaderCompositeResource.cs
- Track.cs
- BindingContext.cs
- AspCompat.cs
- MessageQueuePermissionEntry.cs
- CompleteWizardStep.cs
- XmlDataSourceView.cs
- AutoGeneratedFieldProperties.cs
- ReplacementText.cs
- DesignerDataSourceView.cs
- XmlAttributes.cs
- OdbcPermission.cs
- PolicyException.cs
- IndexedGlyphRun.cs
- MeasureItemEvent.cs
- Quack.cs
- SatelliteContractVersionAttribute.cs
- ErrorActivity.cs
- WhileDesigner.cs
- EndOfStreamException.cs
- ColorInterpolationModeValidation.cs
- mediaeventargs.cs
- ResourceDefaultValueAttribute.cs
- RIPEMD160Managed.cs
- VariableAction.cs
- ToolboxItemAttribute.cs
- NegotiationTokenAuthenticatorState.cs
- DocumentViewerBase.cs
- HitTestDrawingContextWalker.cs
- ConditionCollection.cs
- TrackingProfileManager.cs
- SignatureDescription.cs
- ObjRef.cs
- SoapIgnoreAttribute.cs
- WinEventHandler.cs
- ConnectionStringsSection.cs
- DetailsViewUpdateEventArgs.cs
- FixedFindEngine.cs
- sqlmetadatafactory.cs
- WebExceptionStatus.cs
- NavigationWindowAutomationPeer.cs
- NamedServiceModelExtensionCollectionElement.cs
- TemplateBuilder.cs
- Merger.cs
- XPathSelectionIterator.cs
- InternalControlCollection.cs
- SelectionProviderWrapper.cs
- EntitySqlException.cs
- prefixendpointaddressmessagefiltertable.cs
- ReflectionTypeLoadException.cs
- MenuItemCollection.cs
- RequestUriProcessor.cs
- ByteAnimationBase.cs
- TextRangeEditTables.cs
- ExtensionQuery.cs
- ProgressBar.cs
- FilteredDataSetHelper.cs
- ScrollChrome.cs
- XmlSchemaGroup.cs
- Lasso.cs
- ConfigurationSettings.cs
- DataControlButton.cs
- OdbcConnectionFactory.cs
- DeleteBookmarkScope.cs
- HttpStreamXmlDictionaryReader.cs
- DirtyTextRange.cs
- DnsElement.cs
- DynamicActivityXamlReader.cs
- StringPropertyBuilder.cs
- AsymmetricKeyExchangeFormatter.cs
- EndpointDiscoveryBehavior.cs
- GradientBrush.cs
- PropertyInformationCollection.cs