Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / TextElementEditingBehaviorAttribute.cs / 1305600 / TextElementEditingBehaviorAttribute.cs
using System; namespace System.Windows.Documents { ////// An attribute that controls editing behavior of elements. /// [AttributeUsage(AttributeTargets.Class)] public sealed class TextElementEditingBehaviorAttribute : System.Attribute { ////// Constructor /// public TextElementEditingBehaviorAttribute() { } ////// If true, the element can be merged with other elements of the same type when /// properties are the same. This also affects other aspects of editing around the /// element. If true and the element is at the end of the document, there is no /// insertion position outside the element; if false under these conditions, there is /// no insertion position inside instead. An empty mergeable element at the start of /// the document will be preserved; an empty non-mergeable element will be discarded. /// A mergeable element can be split by inserting a paragraph break inside; a /// non-mergeable cannot, and the editor will not allow a break to be inserted. /// public bool IsMergeable { get { return _isMergeable; } set { _isMergeable = value; } } ////// If true, the element has only typographic meaning-- it exists solely to format /// content. If false, the element has contextual meaning or UI behavior that would /// make no sense to carry over into a new context that doesn't know how to handle /// that behavior. /// /// When an element is partially selected and copied, formatting will be lost on the /// new copy if IsTypographicOnly is false (e.g. Hyperlink). If true, formatting will /// persist. /// public bool IsTypographicOnly { get { return _isTypographicOnly; } set { _isTypographicOnly = value; } } private bool _isMergeable; private bool _isTypographicOnly; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows.Documents { ////// An attribute that controls editing behavior of elements. /// [AttributeUsage(AttributeTargets.Class)] public sealed class TextElementEditingBehaviorAttribute : System.Attribute { ////// Constructor /// public TextElementEditingBehaviorAttribute() { } ////// If true, the element can be merged with other elements of the same type when /// properties are the same. This also affects other aspects of editing around the /// element. If true and the element is at the end of the document, there is no /// insertion position outside the element; if false under these conditions, there is /// no insertion position inside instead. An empty mergeable element at the start of /// the document will be preserved; an empty non-mergeable element will be discarded. /// A mergeable element can be split by inserting a paragraph break inside; a /// non-mergeable cannot, and the editor will not allow a break to be inserted. /// public bool IsMergeable { get { return _isMergeable; } set { _isMergeable = value; } } ////// If true, the element has only typographic meaning-- it exists solely to format /// content. If false, the element has contextual meaning or UI behavior that would /// make no sense to carry over into a new context that doesn't know how to handle /// that behavior. /// /// When an element is partially selected and copied, formatting will be lost on the /// new copy if IsTypographicOnly is false (e.g. Hyperlink). If true, formatting will /// persist. /// public bool IsTypographicOnly { get { return _isTypographicOnly; } set { _isTypographicOnly = value; } } private bool _isMergeable; private bool _isTypographicOnly; } } // 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
- FilterException.cs
- CodePageEncoding.cs
- TabControl.cs
- Image.cs
- InputLangChangeEvent.cs
- ScriptRegistrationManager.cs
- EntityCommandCompilationException.cs
- ListChangedEventArgs.cs
- NumericPagerField.cs
- baseaxisquery.cs
- ContextBase.cs
- OneWayChannelFactory.cs
- ObjectItemConventionAssemblyLoader.cs
- HtmlHead.cs
- DESCryptoServiceProvider.cs
- SmiEventStream.cs
- FixUp.cs
- TableCellAutomationPeer.cs
- RtfToXamlReader.cs
- DataGridPreparingCellForEditEventArgs.cs
- JpegBitmapDecoder.cs
- WebPartConnectionsConfigureVerb.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- LookupNode.cs
- KnownBoxes.cs
- TypeUsageBuilder.cs
- ping.cs
- PenThread.cs
- DataObjectEventArgs.cs
- SplashScreenNativeMethods.cs
- XmlDictionaryString.cs
- ProxyElement.cs
- SqlConnectionHelper.cs
- ValidatorAttribute.cs
- FontStyles.cs
- pingexception.cs
- ScrollChangedEventArgs.cs
- ResourceCategoryAttribute.cs
- ISAPIWorkerRequest.cs
- ReadOnlyMetadataCollection.cs
- SignedXml.cs
- TreeWalkHelper.cs
- LineServicesCallbacks.cs
- AssemblyBuilder.cs
- RectKeyFrameCollection.cs
- JoinCqlBlock.cs
- QilInvoke.cs
- XamlGridLengthSerializer.cs
- PersonalizationDictionary.cs
- StringStorage.cs
- InvalidPipelineStoreException.cs
- HttpServerChannel.cs
- ContentType.cs
- ManualResetEvent.cs
- XPathParser.cs
- UdpConstants.cs
- PointLight.cs
- CertificateElement.cs
- _SingleItemRequestCache.cs
- WebPartTracker.cs
- RegexCompilationInfo.cs
- FilterEventArgs.cs
- Comparer.cs
- XmlWhitespace.cs
- KeyConstraint.cs
- DataServiceEntityAttribute.cs
- TimerElapsedEvenArgs.cs
- SetStateDesigner.cs
- httpserverutility.cs
- URL.cs
- RenderData.cs
- Guid.cs
- ContextMenu.cs
- ListParagraph.cs
- TransactionTraceIdentifier.cs
- BlockUIContainer.cs
- SearchForVirtualItemEventArgs.cs
- TdsParserStateObject.cs
- PixelFormatConverter.cs
- SelectionItemProviderWrapper.cs
- Line.cs
- SiteMapHierarchicalDataSourceView.cs
- DirectionalLight.cs
- RoleService.cs
- ItemCollection.cs
- WebPartVerb.cs
- AspCompat.cs
- FeatureManager.cs
- XmlDownloadManager.cs
- PerfCounterSection.cs
- mediaclock.cs
- ColorAnimationBase.cs
- DiscoveryEndpointValidator.cs
- BitmapEffect.cs
- FigureHelper.cs
- EventMappingSettingsCollection.cs
- NativeObjectSecurity.cs
- ManipulationDevice.cs
- PolyBezierSegment.cs
- DataGridViewTextBoxColumn.cs