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
- WindowsButton.cs
- PlainXmlSerializer.cs
- TemplateNameScope.cs
- RuntimeHelpers.cs
- PointKeyFrameCollection.cs
- AuthenticationModulesSection.cs
- OdbcConnectionFactory.cs
- XamlFilter.cs
- SafeCryptContextHandle.cs
- MarshalDirectiveException.cs
- Wildcard.cs
- PropertyValidationContext.cs
- ControlBuilderAttribute.cs
- GeneralTransformGroup.cs
- DockAndAnchorLayout.cs
- ZipIOLocalFileBlock.cs
- CollaborationHelperFunctions.cs
- SweepDirectionValidation.cs
- CompareValidator.cs
- PowerStatus.cs
- SafeIUnknown.cs
- MemoryMappedViewStream.cs
- PathFigureCollection.cs
- PipelineDeploymentState.cs
- LoggedException.cs
- FixedFindEngine.cs
- EditorPartCollection.cs
- SafeCoTaskMem.cs
- Enum.cs
- ChangeBlockUndoRecord.cs
- RC2.cs
- XmlCharacterData.cs
- PointConverter.cs
- FontFaceLayoutInfo.cs
- TextTreeTextBlock.cs
- EntityConnectionStringBuilderItem.cs
- WindowsSlider.cs
- VisualTreeHelper.cs
- BitVector32.cs
- Constants.cs
- GridEntry.cs
- BinaryVersion.cs
- _LocalDataStore.cs
- HwndSourceParameters.cs
- BridgeDataRecord.cs
- BoundPropertyEntry.cs
- XsltSettings.cs
- NativeCompoundFileAPIs.cs
- EntityDataSourceEntitySetNameItem.cs
- DataRowView.cs
- mediapermission.cs
- CAGDesigner.cs
- TransactionManager.cs
- HostElement.cs
- BrowserDefinitionCollection.cs
- securestring.cs
- SrgsOneOf.cs
- RegexWorker.cs
- Vector3DKeyFrameCollection.cs
- ApplicationContext.cs
- VisualTreeHelper.cs
- BitmapDecoder.cs
- CommandCollectionEditor.cs
- ZipIOLocalFileBlock.cs
- WebPartCancelEventArgs.cs
- FileDialogCustomPlace.cs
- ResourceDisplayNameAttribute.cs
- LocatorBase.cs
- DoubleAnimationUsingKeyFrames.cs
- Canvas.cs
- DebugInfoGenerator.cs
- XmlTypeMapping.cs
- TemplateBamlRecordReader.cs
- UTF7Encoding.cs
- DataColumnChangeEvent.cs
- WSHttpSecurityElement.cs
- PeerDuplexChannelListener.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- OAVariantLib.cs
- ISessionStateStore.cs
- HttpListenerPrefixCollection.cs
- CompilationSection.cs
- DataKeyArray.cs
- NegotiationTokenAuthenticatorStateCache.cs
- OracleCommand.cs
- DefaultBindingPropertyAttribute.cs
- TriggerAction.cs
- ToolStripSystemRenderer.cs
- TaskHelper.cs
- GetIndexBinder.cs
- filewebresponse.cs
- TemplateControlBuildProvider.cs
- VectorAnimation.cs
- PermissionSetTriple.cs
- Font.cs
- SizeAnimationClockResource.cs
- XmlSchemaCollection.cs
- SerialStream.cs
- NetworkCredential.cs