Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlToClrEventProxy.cs
- DateTimeConstantAttribute.cs
- XmlTypeAttribute.cs
- PipelineModuleStepContainer.cs
- DataGridTextBox.cs
- ScrollableControl.cs
- XmlSyndicationContent.cs
- ContentPresenter.cs
- columnmapkeybuilder.cs
- ZipIOBlockManager.cs
- GlyphRunDrawing.cs
- MatrixValueSerializer.cs
- MenuItemCollection.cs
- SqlInternalConnectionSmi.cs
- LoginName.cs
- RenderingBiasValidation.cs
- ParameterElement.cs
- Polyline.cs
- DynamicUpdateCommand.cs
- LinkedResource.cs
- IisNotInstalledException.cs
- dataobject.cs
- FocusManager.cs
- EventMap.cs
- RawStylusInputCustomData.cs
- SoapAttributeAttribute.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- ExpressionNode.cs
- ButtonBaseAutomationPeer.cs
- TreeChangeInfo.cs
- CredentialCache.cs
- InputScope.cs
- CertificateElement.cs
- MouseGestureConverter.cs
- DynamicEndpoint.cs
- AccessibleObject.cs
- DataGridViewColumnConverter.cs
- UserPreferenceChangingEventArgs.cs
- TopClause.cs
- SqlOuterApplyReducer.cs
- InvalidEnumArgumentException.cs
- EntityDataSourceViewSchema.cs
- FixUpCollection.cs
- loginstatus.cs
- Tuple.cs
- ManagementException.cs
- ContentHostHelper.cs
- FullTextState.cs
- Maps.cs
- AccessDataSource.cs
- ComPlusContractBehavior.cs
- webproxy.cs
- OdbcDataReader.cs
- NativeMethods.cs
- BridgeDataRecord.cs
- TextBox.cs
- MailMessage.cs
- BindableTemplateBuilder.cs
- FileIOPermission.cs
- Errors.cs
- documentation.cs
- LinkedResourceCollection.cs
- ImageInfo.cs
- ToolStripDesignerAvailabilityAttribute.cs
- GifBitmapDecoder.cs
- RequestSecurityTokenResponse.cs
- MachineKeySection.cs
- LayoutDump.cs
- SuppressMergeCheckAttribute.cs
- CodeDomConfigurationHandler.cs
- StandardOleMarshalObject.cs
- SelectionProviderWrapper.cs
- Currency.cs
- Currency.cs
- ValidationEventArgs.cs
- TCEAdapterGenerator.cs
- DbConnectionClosed.cs
- SchemaNamespaceManager.cs
- ModelFunction.cs
- XslCompiledTransform.cs
- CompiledRegexRunnerFactory.cs
- DecimalConverter.cs
- ProtocolsSection.cs
- DataControlFieldCell.cs
- StoreAnnotationsMap.cs
- PassportIdentity.cs
- ToolboxItemCollection.cs
- ScaleTransform3D.cs
- Timeline.cs
- TableCellCollection.cs
- BeginGetFileNameFromUserRequest.cs
- NumericUpDownAccelerationCollection.cs
- documentation.cs
- FontFamilyValueSerializer.cs
- xmlNames.cs
- ContentType.cs
- Hash.cs
- UInt64Converter.cs
- ListBox.cs
- StructuredTypeEmitter.cs