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
- RichTextBox.cs
- SrgsSemanticInterpretationTag.cs
- BrushValueSerializer.cs
- TextStore.cs
- WebPartDescription.cs
- CleanUpVirtualizedItemEventArgs.cs
- XmlDataSourceView.cs
- DataServiceHost.cs
- Base64Decoder.cs
- DelegateArgumentValue.cs
- TextElementCollectionHelper.cs
- RuntimeEnvironment.cs
- HttpModulesSection.cs
- StreamUpdate.cs
- XmlQueryOutput.cs
- FontWeights.cs
- DefaultEventAttribute.cs
- CompositeActivityCodeGenerator.cs
- SqlTypeConverter.cs
- SectionXmlInfo.cs
- XPathScanner.cs
- TypeListConverter.cs
- MonthCalendar.cs
- FacetValueContainer.cs
- ObjectQueryExecutionPlan.cs
- HttpGetProtocolReflector.cs
- SSmlParser.cs
- ApplicationFileParser.cs
- ColorTransform.cs
- Stacktrace.cs
- BatchServiceHost.cs
- ProfileProvider.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- List.cs
- ArrayTypeMismatchException.cs
- ScrollableControl.cs
- HashCoreRequest.cs
- HttpResponse.cs
- FileIOPermission.cs
- XDeferredAxisSource.cs
- HtmlUtf8RawTextWriter.cs
- QuaternionRotation3D.cs
- SymbolEqualComparer.cs
- ToolStripStatusLabel.cs
- HostedNamedPipeTransportManager.cs
- ExtentJoinTreeNode.cs
- StatusBarItem.cs
- unsafenativemethodstextservices.cs
- CustomError.cs
- MemoryFailPoint.cs
- VisualTarget.cs
- ColumnMap.cs
- PagerSettings.cs
- CompletionCallbackWrapper.cs
- ListBoxItem.cs
- DispatcherEventArgs.cs
- TypedColumnHandler.cs
- ShapingEngine.cs
- SpanIndex.cs
- TimeStampChecker.cs
- ContentPresenter.cs
- ReflectionTypeLoadException.cs
- ExtenderProviderService.cs
- GridView.cs
- ConfigPathUtility.cs
- InstanceNotFoundException.cs
- AspCompat.cs
- XmlIterators.cs
- BufferModeSettings.cs
- DependencyPropertyKey.cs
- PackagePart.cs
- BitmapDownload.cs
- mediaeventargs.cs
- ParsedAttributeCollection.cs
- ApplicationManager.cs
- AnimationException.cs
- StylusCaptureWithinProperty.cs
- PointCollection.cs
- Base64Stream.cs
- CompoundFileDeflateTransform.cs
- precedingsibling.cs
- CodeMemberProperty.cs
- Transform3D.cs
- ControlPersister.cs
- QueryMath.cs
- _KerberosClient.cs
- PngBitmapDecoder.cs
- PeerEndPoint.cs
- DataGridColumnEventArgs.cs
- CSharpCodeProvider.cs
- FixedHighlight.cs
- Command.cs
- ExtenderControl.cs
- BinaryMethodMessage.cs
- TreeNode.cs
- SqlRowUpdatingEvent.cs
- PropertyManager.cs
- ConnectionManagementElement.cs
- TypedOperationInfo.cs
- WebPartExportVerb.cs