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
- WorkflowTraceTransfer.cs
- CacheForPrimitiveTypes.cs
- MulticastOption.cs
- XmlWriterSettings.cs
- WebConfigurationFileMap.cs
- SmiConnection.cs
- SimpleHandlerBuildProvider.cs
- ViewBox.cs
- XmlDownloadManager.cs
- Directory.cs
- TypedRowHandler.cs
- WebPartConnectionsCancelVerb.cs
- NavigationProgressEventArgs.cs
- DispatchChannelSink.cs
- HttpServerVarsCollection.cs
- Shape.cs
- DataSetUtil.cs
- PropertyDescriptorCollection.cs
- Pointer.cs
- PersonalizableAttribute.cs
- BrowserDefinitionCollection.cs
- SynchronizationValidator.cs
- NativeRecognizer.cs
- Splitter.cs
- DataGridViewSortCompareEventArgs.cs
- ClientProxyGenerator.cs
- RenderData.cs
- ContainerTracking.cs
- Int16AnimationUsingKeyFrames.cs
- Image.cs
- TabControlEvent.cs
- UrlMappingsSection.cs
- DataGridColumnCollection.cs
- TabRenderer.cs
- RepeatBehaviorConverter.cs
- TextRangeAdaptor.cs
- DataObjectSettingDataEventArgs.cs
- BindingContext.cs
- ApplicationSecurityInfo.cs
- CharKeyFrameCollection.cs
- OneToOneMappingSerializer.cs
- SqlConnection.cs
- WebEventCodes.cs
- SystemResourceKey.cs
- AssociationType.cs
- GeometryDrawing.cs
- CompilerState.cs
- SplitterEvent.cs
- HttpStreams.cs
- HotCommands.cs
- ValidatingReaderNodeData.cs
- HttpResponseHeader.cs
- EventHandlerList.cs
- FunctionNode.cs
- ProcessThreadDesigner.cs
- SigningCredentials.cs
- ObjectListDesigner.cs
- GeneralTransform2DTo3DTo2D.cs
- ReferenceEqualityComparer.cs
- EdmPropertyAttribute.cs
- PageStatePersister.cs
- CachedPathData.cs
- ListViewDeletedEventArgs.cs
- LogSwitch.cs
- BitmapEncoder.cs
- ComponentEditorPage.cs
- ModelPropertyCollectionImpl.cs
- ProtectedProviderSettings.cs
- WorkflowItemsPresenter.cs
- XsdBuildProvider.cs
- MimeTypePropertyAttribute.cs
- OnOperation.cs
- UIElement.cs
- LayoutInformation.cs
- XhtmlConformanceSection.cs
- CodeDelegateCreateExpression.cs
- EventRoute.cs
- DataGridViewTopLeftHeaderCell.cs
- XamlSerializerUtil.cs
- RegexFCD.cs
- MatrixAnimationBase.cs
- URLAttribute.cs
- BindingsCollection.cs
- InfoCardProofToken.cs
- MarginsConverter.cs
- DynamicFilterExpression.cs
- ArithmeticException.cs
- ControlPersister.cs
- PrintingPermissionAttribute.cs
- MouseBinding.cs
- ItemMap.cs
- WebScriptMetadataInstanceContextProvider.cs
- PointLightBase.cs
- IPipelineRuntime.cs
- SharedPersonalizationStateInfo.cs
- XmlResolver.cs
- SHA1CryptoServiceProvider.cs
- TreeNodeSelectionProcessor.cs
- ServiceAuthorizationElement.cs
- IndexedString.cs