Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Documents / TextElementEditingBehaviorAttribute.cs / 1 / 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
- AddInAttribute.cs
- NumericExpr.cs
- DataSet.cs
- sqlpipe.cs
- DesignTimeTemplateParser.cs
- Update.cs
- Rijndael.cs
- AutomationProperty.cs
- CustomActivityDesigner.cs
- updatecommandorderer.cs
- XmlQueryCardinality.cs
- ArraySet.cs
- DurableInstance.cs
- TypedElement.cs
- CompressedStack.cs
- TextSpanModifier.cs
- PageAsyncTaskManager.cs
- GeometryModel3D.cs
- CacheSection.cs
- StorageAssociationTypeMapping.cs
- ReferenceEqualityComparer.cs
- FileFormatException.cs
- XmlEncoding.cs
- ClientScriptManager.cs
- JournalEntryStack.cs
- ConnectionPool.cs
- XmlCountingReader.cs
- SettingsBindableAttribute.cs
- MessageFilterTable.cs
- MemberJoinTreeNode.cs
- TreeNodeConverter.cs
- FixedNode.cs
- ResolvePPIDRequest.cs
- MetadataCollection.cs
- TargetParameterCountException.cs
- ExpressionVisitor.cs
- Listbox.cs
- RemotingService.cs
- CngKeyCreationParameters.cs
- InkCanvasFeedbackAdorner.cs
- EpmAttributeNameBuilder.cs
- WebPartTransformer.cs
- CompilerWrapper.cs
- CacheRequest.cs
- Nodes.cs
- StrokeNodeEnumerator.cs
- FilterUserControlBase.cs
- _AutoWebProxyScriptHelper.cs
- MenuCommandService.cs
- EmulateRecognizeCompletedEventArgs.cs
- XmlSchemaType.cs
- ModuleConfigurationInfo.cs
- ObjectPersistData.cs
- FileDialog.cs
- RowBinding.cs
- ToolBarButton.cs
- DiscriminatorMap.cs
- RegexCompilationInfo.cs
- ProgressBarRenderer.cs
- SqlUtils.cs
- ToolStripDropDownItem.cs
- MessageQueueTransaction.cs
- RenderDataDrawingContext.cs
- TreeNodeCollectionEditor.cs
- ReferentialConstraint.cs
- BinaryObjectWriter.cs
- TypeElement.cs
- LiteralTextContainerControlBuilder.cs
- SmiRequestExecutor.cs
- CommandManager.cs
- XmlEntityReference.cs
- TemplateParser.cs
- ProxyWebPartManager.cs
- AggregationMinMaxHelpers.cs
- ExpressionPrefixAttribute.cs
- DbParameterHelper.cs
- TextEffect.cs
- AutoScrollExpandMessageFilter.cs
- ZipIOCentralDirectoryBlock.cs
- QilTernary.cs
- remotingproxy.cs
- SharedDp.cs
- ControlEvent.cs
- DependencyObjectType.cs
- StrokeCollectionConverter.cs
- BackgroundWorker.cs
- IdentityManager.cs
- TextFormattingConverter.cs
- LogRestartAreaEnumerator.cs
- SystemIPGlobalStatistics.cs
- WebPartRestoreVerb.cs
- DesignTimeData.cs
- MarkupObject.cs
- ReferenceEqualityComparer.cs
- TransformationRules.cs
- TextStore.cs
- DefaultDiscoveryService.cs
- securitycriticaldataClass.cs
- ApplicationCommands.cs
- WaitingCursor.cs