Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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: 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. //------------------------------------------------------------------------ // // 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
- Journaling.cs
- AspNetSynchronizationContext.cs
- X509ChainElement.cs
- ContourSegment.cs
- AnnotationResourceChangedEventArgs.cs
- CachedPathData.cs
- Rotation3DAnimation.cs
- PathSegmentCollection.cs
- TerminatorSinks.cs
- Path.cs
- RichTextBox.cs
- User.cs
- FlatButtonAppearance.cs
- TabPanel.cs
- SpotLight.cs
- XmlSiteMapProvider.cs
- MiniMapControl.xaml.cs
- KoreanLunisolarCalendar.cs
- NavigateEvent.cs
- NotifyIcon.cs
- RectAnimationUsingKeyFrames.cs
- EnvelopedPkcs7.cs
- TextEffect.cs
- ApplicationManager.cs
- ObjectItemCachedAssemblyLoader.cs
- Visual.cs
- XmlAttributeProperties.cs
- GcHandle.cs
- SafeViewOfFileHandle.cs
- TaskCanceledException.cs
- TextElementCollectionHelper.cs
- LinearQuaternionKeyFrame.cs
- MatrixIndependentAnimationStorage.cs
- DataGridItem.cs
- ColorDialog.cs
- ConversionContext.cs
- PathNode.cs
- ProviderSettings.cs
- KerberosSecurityTokenAuthenticator.cs
- PaperSource.cs
- TypeConverterHelper.cs
- StickyNoteContentControl.cs
- PropertyChangeTracker.cs
- TransportationConfigurationTypeInstallComponent.cs
- Stackframe.cs
- SizeValueSerializer.cs
- storepermissionattribute.cs
- ProgressBarRenderer.cs
- SHA512.cs
- OdbcEnvironment.cs
- UnsafeNativeMethods.cs
- ComboBoxRenderer.cs
- TypeExtensions.cs
- FontConverter.cs
- ReadOnlyHierarchicalDataSource.cs
- ComplexLine.cs
- BufferedStream2.cs
- XmlSchemaAttributeGroupRef.cs
- COM2ColorConverter.cs
- ReadWriteSpinLock.cs
- MulticastOption.cs
- WebPartZoneBase.cs
- DataGridViewComboBoxColumn.cs
- NavigatorInput.cs
- MimeTypeMapper.cs
- QueryCursorEventArgs.cs
- ExpressionBindingCollection.cs
- CallbackValidator.cs
- ContextProperty.cs
- CategoryEditor.cs
- SymbolEqualComparer.cs
- AesCryptoServiceProvider.cs
- ListViewCancelEventArgs.cs
- DesignerDataRelationship.cs
- SystemException.cs
- WindowsTokenRoleProvider.cs
- WorkflowMarkupElementEventArgs.cs
- WebReferencesBuildProvider.cs
- SequenceDesigner.cs
- BasicKeyConstraint.cs
- SecurityManager.cs
- FileSystemWatcher.cs
- FormViewInsertedEventArgs.cs
- CustomPopupPlacement.cs
- PasswordBox.cs
- LinkedList.cs
- CallbackValidator.cs
- ConfigurationElementProperty.cs
- future.cs
- diagnosticsswitches.cs
- HMACSHA256.cs
- RC2.cs
- MarkupCompilePass2.cs
- TiffBitmapDecoder.cs
- DropShadowBitmapEffect.cs
- WindowsGrip.cs
- SoapObjectReader.cs
- ResourceProviderFactory.cs
- ManipulationStartedEventArgs.cs
- ClientUtils.cs