Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PkcsUtils.cs
- StoreItemCollection.Loader.cs
- PrintPreviewControl.cs
- IPAddressCollection.cs
- WorkflowInspectionServices.cs
- TimeSpanValidatorAttribute.cs
- DataGridViewElement.cs
- WinEventWrap.cs
- Math.cs
- TypeToken.cs
- SystemDropShadowChrome.cs
- UIAgentAsyncParams.cs
- CookieProtection.cs
- OdbcConnection.cs
- ItemChangedEventArgs.cs
- XLinq.cs
- HtmlInputControl.cs
- CatalogZoneBase.cs
- PropertyTabChangedEvent.cs
- JournalEntry.cs
- CustomAttribute.cs
- ButtonBaseDesigner.cs
- Sorting.cs
- DocumentReferenceCollection.cs
- ObjectPersistData.cs
- EndpointDiscoveryMetadata11.cs
- Application.cs
- FontSourceCollection.cs
- HwndHostAutomationPeer.cs
- CorrelationTokenInvalidatedHandler.cs
- DataViewSettingCollection.cs
- DeclarativeCatalogPart.cs
- Pkcs7Recipient.cs
- PaintEvent.cs
- ObjectDataSourceStatusEventArgs.cs
- ThicknessConverter.cs
- GradientStop.cs
- DataServices.cs
- ConfigXmlCDataSection.cs
- ComponentEditorPage.cs
- TargetFrameworkAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- PopOutPanel.cs
- ZipIORawDataFileBlock.cs
- CreateWorkflowOwnerCommand.cs
- CmsUtils.cs
- BreakSafeBase.cs
- WorkflowInvoker.cs
- EventItfInfo.cs
- EntityDesignerUtils.cs
- ExternalDataExchangeClient.cs
- RowsCopiedEventArgs.cs
- ExpressionLink.cs
- HttpContextServiceHost.cs
- DocumentApplication.cs
- ObjectContext.cs
- MsmqVerifier.cs
- DragSelectionMessageFilter.cs
- Compress.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ToolboxCategory.cs
- Tool.cs
- AppModelKnownContentFactory.cs
- PeerName.cs
- PowerStatus.cs
- FieldBuilder.cs
- Hex.cs
- DataControlHelper.cs
- RequestCachePolicy.cs
- DataGridCommandEventArgs.cs
- QilGenerator.cs
- PreProcessInputEventArgs.cs
- ExpressionList.cs
- SelectedDatesCollection.cs
- HtmlControl.cs
- StorageBasedPackageProperties.cs
- NullableLongMinMaxAggregationOperator.cs
- FlowDocumentReader.cs
- ZipIOExtraFieldZip64Element.cs
- DefinitionUpdate.cs
- querybuilder.cs
- NativeMethods.cs
- DecimalKeyFrameCollection.cs
- AccessDataSourceView.cs
- LogSwitch.cs
- PrintPreviewDialog.cs
- Border.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- PostBackTrigger.cs
- DynamicRendererThreadManager.cs
- LayoutDump.cs
- ContextQuery.cs
- ComplexPropertyEntry.cs
- DefaultValueTypeConverter.cs
- GregorianCalendarHelper.cs
- SimpleWebHandlerParser.cs
- DateTimeParse.cs
- OleDbPermission.cs
- ScrollChangedEventArgs.cs
- HttpCacheParams.cs