Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / textformatting / TextEndOfLine.cs / 1 / TextEndOfLine.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation // // File: TextEndOfLine.cs // // Contents: Implementation of text linebreak control // // Spec: [....]/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 [....] ([....]) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Windows; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.TextFormatting { ////// Specialized text run used to mark the end of a line /// public class TextEndOfLine : TextRun { private int _length; private TextRunProperties _textRunProperties; #region Constructors ////// Construct a linebreak run /// /// number of characters public TextEndOfLine(int length) : this(length, null) {} ////// Construct a linebreak run /// /// number of characters /// linebreak text run properties public TextEndOfLine( int length, TextRunProperties textRunProperties ) { if (length <= 0) throw new ArgumentOutOfRangeException("length", SR.Get(SRID.ParameterMustBeGreaterThanZero)); if (textRunProperties != null && textRunProperties.Typeface == null) throw new ArgumentNullException("textRunProperties.Typeface"); _length = length; _textRunProperties = textRunProperties; } #endregion ////// Reference to character buffer /// public sealed override CharacterBufferReference CharacterBufferReference { get { return new CharacterBufferReference(); } } ////// Character length /// public sealed override int Length { get { return _length; } } ////// A set of properties shared by every characters in the run /// public sealed override TextRunProperties Properties { get { return _textRunProperties; } } } } // 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
- CodePropertyReferenceExpression.cs
- SpeakCompletedEventArgs.cs
- ThousandthOfEmRealPoints.cs
- CombinedGeometry.cs
- StackBuilderSink.cs
- SimpleHandlerBuildProvider.cs
- LinearQuaternionKeyFrame.cs
- CacheEntry.cs
- PrtCap_Reader.cs
- LinkGrep.cs
- EventsTab.cs
- LineVisual.cs
- ProcessManager.cs
- serverconfig.cs
- ClientTargetSection.cs
- ToolStripGrip.cs
- ReadOnlyDataSourceView.cs
- BulletDecorator.cs
- PointCollectionValueSerializer.cs
- ConnectionPoolManager.cs
- TopClause.cs
- PermissionSetEnumerator.cs
- FieldNameLookup.cs
- FileDialogPermission.cs
- UrlMappingsSection.cs
- WindowInteropHelper.cs
- CodeCommentStatementCollection.cs
- XmlCharCheckingWriter.cs
- FrameworkContentElement.cs
- ApplicationDirectoryMembershipCondition.cs
- Publisher.cs
- XPathSingletonIterator.cs
- CompositeFontInfo.cs
- DateTime.cs
- SqlServer2KCompatibilityAnnotation.cs
- XamlToRtfParser.cs
- PrinterResolution.cs
- DataPager.cs
- CopyOfAction.cs
- ImageFormatConverter.cs
- Debugger.cs
- PersonalizationDictionary.cs
- ControlBuilder.cs
- PointConverter.cs
- SqlXml.cs
- EntityDesignerBuildProvider.cs
- ReaderWriterLock.cs
- Polygon.cs
- SQLUtility.cs
- ExceptionHandlerDesigner.cs
- KeyMatchBuilder.cs
- WindowsGraphics.cs
- ProcessHostServerConfig.cs
- ProcessingInstructionAction.cs
- Bits.cs
- SwitchLevelAttribute.cs
- FrameAutomationPeer.cs
- TypedElement.cs
- TabItemWrapperAutomationPeer.cs
- WebPartsSection.cs
- ReadOnlyObservableCollection.cs
- ActivityMarkupSerializer.cs
- Double.cs
- RTLAwareMessageBox.cs
- GradientStop.cs
- TaiwanLunisolarCalendar.cs
- XmlDigitalSignatureProcessor.cs
- RegistryHandle.cs
- xamlnodes.cs
- SourceElementsCollection.cs
- IImplicitResourceProvider.cs
- ItemContainerGenerator.cs
- MouseBinding.cs
- DbgUtil.cs
- CacheRequest.cs
- UIPropertyMetadata.cs
- Visual3D.cs
- FontNamesConverter.cs
- DoubleAnimation.cs
- SqlFlattener.cs
- ChangeConflicts.cs
- ShutDownListener.cs
- AbandonedMutexException.cs
- Helpers.cs
- TdsParserHelperClasses.cs
- EventSinkActivity.cs
- TimelineClockCollection.cs
- WindowsSecurityToken.cs
- FieldDescriptor.cs
- HttpCapabilitiesSectionHandler.cs
- ObjectDataSourceDisposingEventArgs.cs
- FontNamesConverter.cs
- QilStrConcat.cs
- SoapMessage.cs
- TableHeaderCell.cs
- MenuRenderer.cs
- ReadOnlyObservableCollection.cs
- StylusLogic.cs
- EmptyTextWriter.cs
- ArcSegment.cs