Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- NameTable.cs
- EdmSchemaAttribute.cs
- WmlTextBoxAdapter.cs
- PointConverter.cs
- ToolStripArrowRenderEventArgs.cs
- HttpRequest.cs
- ContextMenuStrip.cs
- BoundPropertyEntry.cs
- SingleConverter.cs
- SmtpTransport.cs
- XmlSigningNodeWriter.cs
- WorkflowApplication.cs
- ExpressionBuilder.cs
- EqualityComparer.cs
- SafeBitVector32.cs
- ConfigurationSectionGroup.cs
- TouchesOverProperty.cs
- NativeMethods.cs
- HtmlInputHidden.cs
- WizardPanel.cs
- EventDrivenDesigner.cs
- FormView.cs
- _UriSyntax.cs
- HttpDebugHandler.cs
- MessageEncoder.cs
- CodeDirectionExpression.cs
- WebResourceAttribute.cs
- SafePEFileHandle.cs
- CatalogPartChrome.cs
- SchemaHelper.cs
- HtmlImage.cs
- SerialPort.cs
- Message.cs
- StreamSecurityUpgradeProvider.cs
- TransferRequestHandler.cs
- XmlCharCheckingReader.cs
- CroppedBitmap.cs
- SchemaImporterExtensionElement.cs
- Vars.cs
- LayoutEngine.cs
- WriteLine.cs
- EntityExpressionVisitor.cs
- PropertyConverter.cs
- InputMethodStateTypeInfo.cs
- IImplicitResourceProvider.cs
- GeneratedCodeAttribute.cs
- BitSet.cs
- EncodingInfo.cs
- ProxyHwnd.cs
- Token.cs
- updateconfighost.cs
- Wildcard.cs
- FilterException.cs
- ResourcePermissionBaseEntry.cs
- XamlRtfConverter.cs
- AsymmetricSignatureDeformatter.cs
- QilInvokeEarlyBound.cs
- RelatedView.cs
- GroupByExpressionRewriter.cs
- TextEndOfParagraph.cs
- IncrementalHitTester.cs
- SrgsElementFactoryCompiler.cs
- PieceNameHelper.cs
- XmlReaderSettings.cs
- EntityDesignerDataSourceView.cs
- FormatPage.cs
- RegisteredArrayDeclaration.cs
- PropertyTab.cs
- LogConverter.cs
- DbParameterHelper.cs
- AutomationPeer.cs
- BlockUIContainer.cs
- StrongName.cs
- HTTPAPI_VERSION.cs
- DateRangeEvent.cs
- CodeExpressionCollection.cs
- SAPIEngineTypes.cs
- LinqDataSourceSelectEventArgs.cs
- PerformanceCounterLib.cs
- CapabilitiesUse.cs
- HttpWebResponse.cs
- BrowserCapabilitiesFactory35.cs
- TransformPatternIdentifiers.cs
- ADMembershipUser.cs
- ListControl.cs
- SystemColors.cs
- ParsedAttributeCollection.cs
- NativeStructs.cs
- Deserializer.cs
- CatalogZoneBase.cs
- IisTraceWebEventProvider.cs
- PropertyChangingEventArgs.cs
- InputLanguageEventArgs.cs
- BuildProviderCollection.cs
- MouseGestureConverter.cs
- ProviderConnectionPoint.cs
- MonitoringDescriptionAttribute.cs
- ComAwareEventInfo.cs
- RemoteWebConfigurationHostServer.cs
- FrameworkElementFactory.cs