Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CheckBoxFlatAdapter.cs
- TextLine.cs
- CodeTypeDeclaration.cs
- BinaryUtilClasses.cs
- DecoderNLS.cs
- ReadWriteSpinLock.cs
- ModuleBuilderData.cs
- ToolStripSplitButton.cs
- ExpressionLexer.cs
- SqlInternalConnection.cs
- ControlAdapter.cs
- PersonalizableAttribute.cs
- XmlEntityReference.cs
- EnumBuilder.cs
- SequenceFullException.cs
- SoapSchemaExporter.cs
- ManagementDateTime.cs
- RegistrySecurity.cs
- ObjectItemNoOpAssemblyLoader.cs
- PermissionSet.cs
- NumberSubstitution.cs
- SchemaHelper.cs
- Command.cs
- HostingEnvironmentException.cs
- nulltextnavigator.cs
- CipherData.cs
- EnterpriseServicesHelper.cs
- NativeMethods.cs
- OrderedDictionary.cs
- FixedNode.cs
- LinkTarget.cs
- XmlSchemaAttribute.cs
- StatusCommandUI.cs
- DiscoveryReferences.cs
- TdsParserStaticMethods.cs
- StrokeFIndices.cs
- BindToObject.cs
- MetadataItemEmitter.cs
- DataSysAttribute.cs
- KeyValuePair.cs
- RsaKeyGen.cs
- SqlComparer.cs
- WebPartMenu.cs
- DataFormats.cs
- ElementNotAvailableException.cs
- CheckBoxField.cs
- CorrelationManager.cs
- RequestSecurityTokenSerializer.cs
- SafeBitVector32.cs
- PinnedBufferMemoryStream.cs
- RelationshipEndMember.cs
- XmlText.cs
- UIInitializationException.cs
- SoapUnknownHeader.cs
- EntityDataSourceChangingEventArgs.cs
- ToolboxComponentsCreatingEventArgs.cs
- DSASignatureDeformatter.cs
- wmiprovider.cs
- OdbcConnectionStringbuilder.cs
- Validator.cs
- Variant.cs
- DataSourceCollectionBase.cs
- HitTestParameters.cs
- ImpersonationContext.cs
- EventPropertyMap.cs
- ObjectSecurity.cs
- InternalConfirm.cs
- PathTooLongException.cs
- AddInToken.cs
- BamlTreeNode.cs
- XslNumber.cs
- DataGridAddNewRow.cs
- DataControlFieldCell.cs
- SplashScreenNativeMethods.cs
- Exception.cs
- SchemaHelper.cs
- TabControl.cs
- QilGenerator.cs
- DataServiceKeyAttribute.cs
- SchemaImporter.cs
- PartialCachingControl.cs
- WindowsListViewGroup.cs
- RegexGroup.cs
- UpdatePanelControlTrigger.cs
- QilIterator.cs
- processwaithandle.cs
- Timer.cs
- UserControl.cs
- HtmlInputPassword.cs
- DebugInfo.cs
- CssStyleCollection.cs
- SHA256CryptoServiceProvider.cs
- ConfigurationSettings.cs
- SqlUdtInfo.cs
- ADMembershipUser.cs
- ButtonBase.cs
- Ref.cs
- VectorCollection.cs
- UIElement.cs
- ThreadPool.cs