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
- ApplicationActivator.cs
- ContentPresenter.cs
- CreateUserWizardStep.cs
- XdrBuilder.cs
- PageTheme.cs
- FilteredAttributeCollection.cs
- DtcInterfaces.cs
- OnOperation.cs
- MaterialCollection.cs
- Attributes.cs
- PerformanceCounter.cs
- PixelFormat.cs
- ReadOnlyHierarchicalDataSourceView.cs
- EditorZoneBase.cs
- TransactionTable.cs
- Viewport3DAutomationPeer.cs
- GridView.cs
- XmlTextAttribute.cs
- Executor.cs
- ColumnResult.cs
- SafeHandles.cs
- ObjectDataSourceEventArgs.cs
- TypeInitializationException.cs
- TraceContext.cs
- ProcessHost.cs
- DataGridGeneralPage.cs
- TextSchema.cs
- JavascriptCallbackBehaviorAttribute.cs
- Debug.cs
- PtsContext.cs
- PerfService.cs
- Model3DGroup.cs
- DbParameterHelper.cs
- HorizontalAlignConverter.cs
- TableRow.cs
- CheckBoxBaseAdapter.cs
- TemplatedMailWebEventProvider.cs
- ChildTable.cs
- ColorMatrix.cs
- InstalledFontCollection.cs
- CacheChildrenQuery.cs
- FontFamily.cs
- MutexSecurity.cs
- ScrollData.cs
- RadioButtonPopupAdapter.cs
- StatusBarItem.cs
- BufferModesCollection.cs
- FontUnitConverter.cs
- Encoding.cs
- XmlCDATASection.cs
- ImmutableDispatchRuntime.cs
- ActiveXSite.cs
- GridItemProviderWrapper.cs
- XPathNavigatorReader.cs
- ProcessProtocolHandler.cs
- SafePointer.cs
- TextProperties.cs
- ForeignConstraint.cs
- IpcChannel.cs
- RootAction.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DocumentAutomationPeer.cs
- DomainUpDown.cs
- OrderPreservingPipeliningSpoolingTask.cs
- Interlocked.cs
- DateTimeSerializationSection.cs
- Wildcard.cs
- JsonQueryStringConverter.cs
- PrimitiveCodeDomSerializer.cs
- DecimalStorage.cs
- XmlElementAttributes.cs
- DataGrid.cs
- Win32SafeHandles.cs
- Track.cs
- SkinBuilder.cs
- XmlSubtreeReader.cs
- HwndSubclass.cs
- SqlDependency.cs
- BooleanFacetDescriptionElement.cs
- TextEditorSelection.cs
- cookieexception.cs
- CanonicalFormWriter.cs
- RawStylusActions.cs
- BinHexEncoder.cs
- TypeConverterValueSerializer.cs
- HwndProxyElementProvider.cs
- CounterSet.cs
- RuntimeArgumentHandle.cs
- StringSource.cs
- CodeBinaryOperatorExpression.cs
- FilterEventArgs.cs
- CreateUserWizard.cs
- SqlConnectionStringBuilder.cs
- EntityContainerEmitter.cs
- RectangleHotSpot.cs
- SizeF.cs
- LinkClickEvent.cs
- ContextMenu.cs
- _SpnDictionary.cs
- NoResizeHandleGlyph.cs