Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextEndOfLine.cs / 1305600 / TextEndOfLine.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation // // File: TextEndOfLine.cs // // Contents: Implementation of text linebreak control // // Spec: http://team/sites/Avalon/Specs/Text%20Formatting%20API.doc // // Created: 1-2-2004 Worachai Chaoweeraprasit (wchao) // //----------------------------------------------------------------------- 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
- DataSourceCacheDurationConverter.cs
- FigureParagraph.cs
- CustomServiceCredentials.cs
- path.cs
- GeometryCollection.cs
- UpdateException.cs
- ComPlusTraceRecord.cs
- Page.cs
- NamespaceDecl.cs
- XmlDataImplementation.cs
- SystemFonts.cs
- _Connection.cs
- SqlServer2KCompatibilityCheck.cs
- RuntimeArgumentHandle.cs
- TickBar.cs
- SystemIPv6InterfaceProperties.cs
- WebPartMenuStyle.cs
- InternalConfirm.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- GPRECT.cs
- GridToolTip.cs
- OdbcParameterCollection.cs
- FontResourceCache.cs
- DoWorkEventArgs.cs
- FixedDSBuilder.cs
- WindowAutomationPeer.cs
- WebPartTransformer.cs
- x509store.cs
- NegatedCellConstant.cs
- SchemaElementLookUpTable.cs
- Rule.cs
- securitycriticaldataClass.cs
- RC2.cs
- DataTableMappingCollection.cs
- SyndicationItem.cs
- codemethodreferenceexpression.cs
- Dictionary.cs
- MediaTimeline.cs
- WinCategoryAttribute.cs
- PersistChildrenAttribute.cs
- MappingItemCollection.cs
- TraceHandler.cs
- BooleanSwitch.cs
- TextBreakpoint.cs
- StoryFragments.cs
- ProfileModule.cs
- SimpleMailWebEventProvider.cs
- figurelengthconverter.cs
- DBProviderConfigurationHandler.cs
- GenericIdentity.cs
- WpfPayload.cs
- CollectionConverter.cs
- PasswordPropertyTextAttribute.cs
- XomlCompiler.cs
- SessionStateItemCollection.cs
- BitmapPalette.cs
- ResourceSet.cs
- DataTableMappingCollection.cs
- PrintDialog.cs
- TraceHandlerErrorFormatter.cs
- RawStylusInputCustomDataList.cs
- SystemIPInterfaceStatistics.cs
- TextPointer.cs
- ComponentSerializationService.cs
- CallInfo.cs
- BulletDecorator.cs
- QueryStack.cs
- UnsafeNativeMethods.cs
- HandleRef.cs
- EntityContainerRelationshipSetEnd.cs
- SynchronizedReadOnlyCollection.cs
- HandledMouseEvent.cs
- OleServicesContext.cs
- RoutedUICommand.cs
- ListView.cs
- DataControlButton.cs
- LinearKeyFrames.cs
- ConstrainedDataObject.cs
- WindowsEditBox.cs
- ExpressionCopier.cs
- PlatformCulture.cs
- DocumentCollection.cs
- XmlStringTable.cs
- IdleTimeoutMonitor.cs
- WebBrowserProgressChangedEventHandler.cs
- Util.cs
- StatusStrip.cs
- OleDbConnectionInternal.cs
- OdbcEnvironmentHandle.cs
- CustomAttributeSerializer.cs
- SchemaHelper.cs
- XmlChildNodes.cs
- MouseBinding.cs
- TrustLevel.cs
- ObjectDataSource.cs
- FieldCollectionEditor.cs
- COM2ColorConverter.cs
- DocumentApplication.cs
- WebUtil.cs
- CompressedStack.cs