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
- IPEndPointCollection.cs
- DataGridParentRows.cs
- CurrentChangingEventManager.cs
- EncodingNLS.cs
- SQLDouble.cs
- ElementsClipboardData.cs
- UnauthorizedWebPart.cs
- IndexOutOfRangeException.cs
- LoaderAllocator.cs
- ProcessHostServerConfig.cs
- BindingContext.cs
- TabControlAutomationPeer.cs
- AnimatedTypeHelpers.cs
- GridView.cs
- EventHandlerService.cs
- PropertyChangingEventArgs.cs
- BitmapEffectInputConnector.cs
- LinkLabelLinkClickedEvent.cs
- XmlnsPrefixAttribute.cs
- DesigntimeLicenseContext.cs
- OutputScopeManager.cs
- XmlLinkedNode.cs
- TextRangeBase.cs
- StandardBindingImporter.cs
- MDIControlStrip.cs
- Light.cs
- XmlILStorageConverter.cs
- UserControlParser.cs
- XmlException.cs
- BrushProxy.cs
- ListViewGroupItemCollection.cs
- SmiXetterAccessMap.cs
- CodeNamespaceImport.cs
- AutoScrollHelper.cs
- _Semaphore.cs
- RoutedCommand.cs
- SaveFileDialog.cs
- ActivityExecutorDelegateInfo.cs
- WsdlHelpGeneratorElement.cs
- ProcessHostServerConfig.cs
- DLinqAssociationProvider.cs
- BuildProvider.cs
- FamilyMapCollection.cs
- DataGridColumnCollectionEditor.cs
- SmiEventSink_Default.cs
- Wizard.cs
- ListViewUpdatedEventArgs.cs
- StateMachineHelpers.cs
- LogManagementAsyncResult.cs
- ObjectDataSourceStatusEventArgs.cs
- ColorInterpolationModeValidation.cs
- ITreeGenerator.cs
- InternalTypeHelper.cs
- CreateUserWizardStep.cs
- GenericEnumConverter.cs
- GlobalizationAssembly.cs
- GPPOINTF.cs
- OneOfScalarConst.cs
- RsaKeyIdentifierClause.cs
- DataColumnCollection.cs
- DeadCharTextComposition.cs
- NodeLabelEditEvent.cs
- RelationshipConverter.cs
- ControlPropertyNameConverter.cs
- LifetimeServices.cs
- DataGridTableCollection.cs
- MachineKeyConverter.cs
- StaticExtensionConverter.cs
- DocumentXmlWriter.cs
- ChangeTracker.cs
- SafeNativeMethods.cs
- CacheDependency.cs
- ExtensionDataObject.cs
- SharedStream.cs
- Stack.cs
- EntityDataSourceChangingEventArgs.cs
- OleDbConnectionFactory.cs
- FacetChecker.cs
- WebPartHeaderCloseVerb.cs
- PenContexts.cs
- ArgumentDesigner.xaml.cs
- XPathNodePointer.cs
- altserialization.cs
- DynamicQueryableWrapper.cs
- PersonalizationStateInfoCollection.cs
- RegularExpressionValidator.cs
- ParameterModifier.cs
- SmiEventSink.cs
- LinkDescriptor.cs
- DeviceContext2.cs
- WebBaseEventKeyComparer.cs
- DataGridView.cs
- LogExtent.cs
- OleDbRowUpdatingEvent.cs
- XmlSchemaAnyAttribute.cs
- OpenTypeLayoutCache.cs
- CornerRadius.cs
- DateTimePicker.cs
- PointHitTestParameters.cs
- LocalizationComments.cs