Code:
/ 4.0 / 4.0 / 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. 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
- AssemblyNameUtility.cs
- PointConverter.cs
- ExpressionPrefixAttribute.cs
- NetworkCredential.cs
- Int32CollectionValueSerializer.cs
- BufferBuilder.cs
- PipeStream.cs
- Transaction.cs
- ListViewTableCell.cs
- EditorZoneBase.cs
- XPathParser.cs
- DataTableReaderListener.cs
- HandlerWithFactory.cs
- WindowsListViewGroup.cs
- WebPartManagerInternals.cs
- XamlFxTrace.cs
- FontUnit.cs
- RIPEMD160Managed.cs
- ApplicationManager.cs
- NetNamedPipeSecurityMode.cs
- RegexStringValidatorAttribute.cs
- ViewCellSlot.cs
- CommonRemoteMemoryBlock.cs
- ParsedAttributeCollection.cs
- _Win32.cs
- StartFileNameEditor.cs
- ToolBar.cs
- DataColumnCollection.cs
- Converter.cs
- HtmlElementCollection.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CollectionViewGroup.cs
- COMException.cs
- CustomTypeDescriptor.cs
- IncrementalReadDecoders.cs
- Expr.cs
- FunctionQuery.cs
- EdmConstants.cs
- AppliedDeviceFiltersEditor.cs
- QilDataSource.cs
- TypeViewSchema.cs
- XmlDeclaration.cs
- SQLByteStorage.cs
- RectangleHotSpot.cs
- UniqueEventHelper.cs
- ManifestSignatureInformation.cs
- ReferenceSchema.cs
- AssociationTypeEmitter.cs
- UniqueIdentifierService.cs
- CatalogPart.cs
- PackagingUtilities.cs
- SortDescriptionCollection.cs
- SymDocumentType.cs
- HierarchicalDataSourceControl.cs
- Symbol.cs
- PrtCap_Public_Simple.cs
- ValueTypeFixupInfo.cs
- ResourceExpressionBuilder.cs
- WebPartZone.cs
- UTF7Encoding.cs
- Workspace.cs
- ReachFixedDocumentSerializerAsync.cs
- DataBinding.cs
- ReaderWriterLockWrapper.cs
- DetailsView.cs
- UnicodeEncoding.cs
- QuotedPrintableStream.cs
- ChineseLunisolarCalendar.cs
- SqlConnectionHelper.cs
- LoginView.cs
- Transform3D.cs
- WebPartConnectVerb.cs
- UrlPath.cs
- TableLayoutColumnStyleCollection.cs
- NativeObjectSecurity.cs
- Dynamic.cs
- MultiBinding.cs
- AddingNewEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- RulePatternOps.cs
- SimpleModelProvider.cs
- CreateParams.cs
- PrintingPermission.cs
- DeferredElementTreeState.cs
- BeginStoryboard.cs
- HttpFileCollection.cs
- Queue.cs
- IPAddress.cs
- X509Extension.cs
- EntitySetBaseCollection.cs
- IImplicitResourceProvider.cs
- HandoffBehavior.cs
- InitializationEventAttribute.cs
- ExtensionDataReader.cs
- XmlDownloadManager.cs
- SqlNodeAnnotation.cs
- FormViewModeEventArgs.cs
- TypeReference.cs
- SqlRowUpdatedEvent.cs
- WorkflowMarkupElementEventArgs.cs