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
- WindowsBrush.cs
- TextElement.cs
- LongValidator.cs
- HasCopySemanticsAttribute.cs
- DesignTimeXamlWriter.cs
- WCFBuildProvider.cs
- GridViewColumnHeaderAutomationPeer.cs
- SafeArrayTypeMismatchException.cs
- BmpBitmapDecoder.cs
- StylusButtonEventArgs.cs
- LinearGradientBrush.cs
- MergablePropertyAttribute.cs
- StringResourceManager.cs
- ValidatingPropertiesEventArgs.cs
- EntityContainerEntitySet.cs
- SystemIPInterfaceStatistics.cs
- CardSpaceShim.cs
- HtmlInputControl.cs
- SerializationHelper.cs
- NodeLabelEditEvent.cs
- OracleMonthSpan.cs
- PropertyEntry.cs
- NamedPermissionSet.cs
- KoreanCalendar.cs
- SemanticBasicElement.cs
- PnrpPeerResolver.cs
- XPathNodeList.cs
- TriggerActionCollection.cs
- MbpInfo.cs
- MetadataSource.cs
- DataGridViewToolTip.cs
- WorkflowServiceNamespace.cs
- UnauthorizedWebPart.cs
- BoolLiteral.cs
- ButtonRenderer.cs
- SchemaElementDecl.cs
- CommentEmitter.cs
- TimeStampChecker.cs
- ComplexBindingPropertiesAttribute.cs
- UniqueID.cs
- BindingManagerDataErrorEventArgs.cs
- ProfileInfo.cs
- StateRuntime.cs
- _BufferOffsetSize.cs
- HttpProxyCredentialType.cs
- BlobPersonalizationState.cs
- HttpMethodConstraint.cs
- DefaultAsyncDataDispatcher.cs
- DeclarativeCatalogPart.cs
- RepeatEnumerable.cs
- ISAPIWorkerRequest.cs
- XPathSelectionIterator.cs
- CodeExpressionStatement.cs
- XmlILOptimizerVisitor.cs
- TraceProvider.cs
- AssemblySettingAttributes.cs
- LinkConverter.cs
- StringInfo.cs
- FormatException.cs
- EndpointAddressProcessor.cs
- DesignerTransaction.cs
- CookieProtection.cs
- AppModelKnownContentFactory.cs
- PrincipalPermission.cs
- StdRegProviderWrapper.cs
- ObjectStorage.cs
- ConfigXmlWhitespace.cs
- MenuTracker.cs
- TableLayoutPanel.cs
- WebFormsRootDesigner.cs
- ToolStripDropDownClosingEventArgs.cs
- DesignerDataColumn.cs
- _HeaderInfoTable.cs
- PagedDataSource.cs
- StylusDownEventArgs.cs
- ImageList.cs
- CategoryEditor.cs
- StateItem.cs
- TextCharacters.cs
- DefaultObjectSerializer.cs
- UiaCoreTypesApi.cs
- RunWorkerCompletedEventArgs.cs
- XmlSerializerAssemblyAttribute.cs
- SqlDuplicator.cs
- GlyphingCache.cs
- HttpDebugHandler.cs
- PieceNameHelper.cs
- SmiEventSink_Default.cs
- ItemDragEvent.cs
- MenuItemCollection.cs
- ToolBar.cs
- LinqDataSourceHelper.cs
- EventProviderBase.cs
- CustomActivityDesigner.cs
- MessageBox.cs
- IndexerNameAttribute.cs
- XmlMembersMapping.cs
- ValidatingReaderNodeData.cs
- VisualStateChangedEventArgs.cs
- SizeConverter.cs