Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / LineBreak.cs / 1305600 / LineBreak.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // Description: LineBreak element. // // History: // 07/22/2002 : MikeOrr - Created. // 06/26/2003 : ZhenbinX - Ported to /Rewrote for WCP tree // 10/28/2004 : [....] - ContentElements refactoring. // //--------------------------------------------------------------------------- using System.Windows.Markup; // TrimSurrondingWhitespace namespace System.Windows.Documents { ////// LineBreak element that forces a line breaking. /// [TrimSurroundingWhitespace] public class LineBreak : Inline { ////// Creates a new LineBreak instance. /// public LineBreak() { } ////// Creates a new LineBreak instance. /// /// /// Optional position at which to insert the new LineBreak. May /// be null. /// public LineBreak(TextPointer insertionPosition) { if (insertionPosition != null) { insertionPosition.TextContainer.BeginChange(); } try { if (insertionPosition != null) { // This will throw InvalidOperationException if schema validity is violated. insertionPosition.InsertInline(this); } } finally { if (insertionPosition != null) { insertionPosition.TextContainer.EndChange(); } } } } } // 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
- ToolStripPanelRenderEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- FrameworkPropertyMetadata.cs
- DesignerAutoFormatStyle.cs
- LineServicesCallbacks.cs
- IsolatedStorageFile.cs
- XPathNodeHelper.cs
- RNGCryptoServiceProvider.cs
- TemplateModeChangedEventArgs.cs
- HttpServerVarsCollection.cs
- DeploymentExceptionMapper.cs
- TextSpan.cs
- WebDisplayNameAttribute.cs
- TreeNodeCollection.cs
- SqlUserDefinedAggregateAttribute.cs
- StrokeNodeOperations.cs
- XpsException.cs
- GeometryConverter.cs
- PointConverter.cs
- LocatorPartList.cs
- TextBreakpoint.cs
- CustomTrackingRecord.cs
- SQLUtility.cs
- StaticExtension.cs
- followingsibling.cs
- EntityContainerEntitySet.cs
- SelectedDatesCollection.cs
- FontStyleConverter.cs
- DataSet.cs
- TextSpan.cs
- Expressions.cs
- SBCSCodePageEncoding.cs
- SoapHeaders.cs
- SslStream.cs
- PageBuildProvider.cs
- DesignerValidationSummaryAdapter.cs
- XmlDictionaryReader.cs
- CriticalFinalizerObject.cs
- DebuggerAttributes.cs
- SafeRightsManagementSessionHandle.cs
- _LocalDataStore.cs
- XmlCharType.cs
- WorkflowOwnerAsyncResult.cs
- InfoCardSymmetricCrypto.cs
- MemoryStream.cs
- UseLicense.cs
- SecurityRuntime.cs
- XmlDataSource.cs
- StylusPoint.cs
- StatusBarPanel.cs
- XmlWrappingWriter.cs
- RemotingConfigParser.cs
- Int32Converter.cs
- SafeLocalMemHandle.cs
- PeerResolverBindingElement.cs
- AuthenticationService.cs
- ExpanderAutomationPeer.cs
- TreeView.cs
- FileUtil.cs
- DesignerOptionService.cs
- EndOfStreamException.cs
- FixUp.cs
- TraceSection.cs
- DebuggerAttributes.cs
- TreeChangeInfo.cs
- DefaultValueConverter.cs
- IdentityHolder.cs
- ArgumentsParser.cs
- ChannelDemuxer.cs
- RenderingEventArgs.cs
- SHA384.cs
- TogglePatternIdentifiers.cs
- TableLayoutPanel.cs
- dtdvalidator.cs
- RelatedImageListAttribute.cs
- DefaultValueMapping.cs
- WebPartEditorCancelVerb.cs
- ContentControl.cs
- SQLMembershipProvider.cs
- ExceptionRoutedEventArgs.cs
- SecurityHeaderElementInferenceEngine.cs
- UnsafeNativeMethods.cs
- MediaEntryAttribute.cs
- PropertyChangedEventManager.cs
- FixedSOMSemanticBox.cs
- basenumberconverter.cs
- ServerValidateEventArgs.cs
- FontStyles.cs
- TdsParserStateObject.cs
- EtwProvider.cs
- ObjectDataSourceEventArgs.cs
- QueryOutputWriter.cs
- IgnoreDataMemberAttribute.cs
- RightsDocument.cs
- TdsParser.cs
- HScrollBar.cs
- Label.cs
- MenuItem.cs
- _HTTPDateParse.cs
- MessagePropertyDescriptionCollection.cs