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
- DockPatternIdentifiers.cs
- ThaiBuddhistCalendar.cs
- HtmlLink.cs
- ErrorWebPart.cs
- SystemEvents.cs
- EmptyStringExpandableObjectConverter.cs
- TagNameToTypeMapper.cs
- TimelineGroup.cs
- ChannelPoolSettingsElement.cs
- DescendantOverDescendantQuery.cs
- QilInvokeLateBound.cs
- precedingsibling.cs
- IsolationInterop.cs
- Group.cs
- SkipQueryOptionExpression.cs
- ListViewItem.cs
- XmlSchemaComplexContentRestriction.cs
- SQLUtility.cs
- PnrpPeerResolver.cs
- Attributes.cs
- SocketManager.cs
- JumpTask.cs
- WebGetAttribute.cs
- XPathScanner.cs
- XamlReader.cs
- TextBoxBase.cs
- ApplicationInfo.cs
- ToolboxItem.cs
- LabelLiteral.cs
- TransformGroup.cs
- InternalBufferOverflowException.cs
- DrawingContextDrawingContextWalker.cs
- InternalRelationshipCollection.cs
- PersonalizationAdministration.cs
- CapabilitiesState.cs
- ExpandCollapseProviderWrapper.cs
- DynamicDataRouteHandler.cs
- ArrayTypeMismatchException.cs
- HtmlAnchor.cs
- DbConnectionPoolIdentity.cs
- AggregatePushdown.cs
- BrowserTree.cs
- WorkflowViewService.cs
- ValidationErrorEventArgs.cs
- PriorityChain.cs
- DetailsViewUpdateEventArgs.cs
- FixedBufferAttribute.cs
- DataGridViewCellPaintingEventArgs.cs
- String.cs
- ServiceErrorHandler.cs
- CountdownEvent.cs
- VisualBasicSettingsHandler.cs
- ModelUIElement3D.cs
- dataobject.cs
- Timer.cs
- Rect3DValueSerializer.cs
- CaseInsensitiveComparer.cs
- FixedTextBuilder.cs
- RawStylusActions.cs
- TypeHelpers.cs
- ContextMarshalException.cs
- WorkflowRuntimeServiceElementCollection.cs
- Events.cs
- SystemInfo.cs
- DynamicRouteExpression.cs
- TimeManager.cs
- LocalValueEnumerator.cs
- RegexInterpreter.cs
- PersonalizablePropertyEntry.cs
- StrokeNodeOperations.cs
- UIElementParaClient.cs
- TabItemAutomationPeer.cs
- COM2IPerPropertyBrowsingHandler.cs
- DataGridRelationshipRow.cs
- ListDependantCardsRequest.cs
- OpenTypeMethods.cs
- AssemblyHelper.cs
- MetabaseServerConfig.cs
- UniqueIdentifierService.cs
- ExpandableObjectConverter.cs
- ResponseBodyWriter.cs
- TracingConnection.cs
- RelationshipType.cs
- TreeNodeCollectionEditorDialog.cs
- WindowInteractionStateTracker.cs
- MatrixUtil.cs
- UnsafePeerToPeerMethods.cs
- ContainerUIElement3D.cs
- MatchNoneMessageFilter.cs
- DataTableMapping.cs
- SqlCommandBuilder.cs
- MailAddressCollection.cs
- RepeaterItemCollection.cs
- GeneralTransform2DTo3DTo2D.cs
- HwndSource.cs
- NativeMethods.cs
- ConfigurationException.cs
- WpfXamlMember.cs
- VectorCollectionConverter.cs
- QueryCacheKey.cs