Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegistryConfigurationProvider.cs
- WebPartEditVerb.cs
- WindowsTokenRoleProvider.cs
- KnownBoxes.cs
- DelayedRegex.cs
- DataRowExtensions.cs
- ChangePassword.cs
- SecurityException.cs
- SectionRecord.cs
- CapiHashAlgorithm.cs
- SqlReorderer.cs
- GridProviderWrapper.cs
- CredentialCache.cs
- InvalidFilterCriteriaException.cs
- NullRuntimeConfig.cs
- DateTimePicker.cs
- PageEventArgs.cs
- ResourcesBuildProvider.cs
- EnvironmentPermission.cs
- GuidTagList.cs
- GenerateTemporaryTargetAssembly.cs
- DeleteHelper.cs
- UIElementIsland.cs
- SeverityFilter.cs
- HttpCapabilitiesBase.cs
- EntityKeyElement.cs
- QueryResponse.cs
- CompilationSection.cs
- Utility.cs
- StrokeRenderer.cs
- BitmapEffect.cs
- AccessDataSource.cs
- IOThreadTimer.cs
- TransformerInfo.cs
- ProgressBarHighlightConverter.cs
- TraceContextEventArgs.cs
- HtmlInputCheckBox.cs
- FixedHighlight.cs
- FontStretches.cs
- CharEntityEncoderFallback.cs
- DispatcherHookEventArgs.cs
- TreeNodeSelectionProcessor.cs
- RowToParametersTransformer.cs
- CheckBox.cs
- DataGridViewRow.cs
- XmlRawWriterWrapper.cs
- XmlChoiceIdentifierAttribute.cs
- BasicExpressionVisitor.cs
- ToolStripSeparator.cs
- DebugController.cs
- FixedPage.cs
- CompositeTypefaceMetrics.cs
- PenThreadWorker.cs
- XmlObjectSerializerReadContext.cs
- AnnotationObservableCollection.cs
- HostedHttpRequestAsyncResult.cs
- OdbcEnvironmentHandle.cs
- BufferedGraphicsContext.cs
- ProviderUtil.cs
- RootProfilePropertySettingsCollection.cs
- Compensation.cs
- SignHashRequest.cs
- Main.cs
- IgnoreSectionHandler.cs
- CachedBitmap.cs
- TextCollapsingProperties.cs
- DetailsViewDeletedEventArgs.cs
- UnsafeNativeMethods.cs
- ZipIOBlockManager.cs
- EventMappingSettings.cs
- IdnMapping.cs
- TreeSet.cs
- SafeRightsManagementQueryHandle.cs
- WebHeaderCollection.cs
- Viewport3DAutomationPeer.cs
- Error.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CssClassPropertyAttribute.cs
- RepeatInfo.cs
- VisualTreeHelper.cs
- MetricEntry.cs
- OdbcConnectionStringbuilder.cs
- XmlRootAttribute.cs
- BinHexEncoder.cs
- basevalidator.cs
- XhtmlTextWriter.cs
- HMACSHA1.cs
- SamlAssertion.cs
- Propagator.Evaluator.cs
- CleanUpVirtualizedItemEventArgs.cs
- XmlAttributeProperties.cs
- ColorAnimationUsingKeyFrames.cs
- MailMessageEventArgs.cs
- ColorConvertedBitmap.cs
- MouseGestureConverter.cs
- SiteMapNodeItemEventArgs.cs
- NGCPageContentSerializerAsync.cs
- SspiSecurityTokenProvider.cs
- ResourceReferenceExpression.cs
- SecurityElement.cs