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
- OrthographicCamera.cs
- RIPEMD160Managed.cs
- FrameworkContentElement.cs
- ProcessProtocolHandler.cs
- Site.cs
- RadioButtonRenderer.cs
- SHA512Cng.cs
- CorruptStoreException.cs
- Filter.cs
- FreeFormDragDropManager.cs
- BamlVersionHeader.cs
- Button.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- SqlBuffer.cs
- XslNumber.cs
- AdPostCacheSubstitution.cs
- uribuilder.cs
- StrongNameMembershipCondition.cs
- ADMembershipUser.cs
- HttpContextWrapper.cs
- Attributes.cs
- CheckBoxBaseAdapter.cs
- ListControlConvertEventArgs.cs
- TokenBasedSet.cs
- Pens.cs
- ReadOnlyCollection.cs
- OletxTransactionFormatter.cs
- XmlChildEnumerator.cs
- ZipFileInfo.cs
- EntityContainerEntitySetDefiningQuery.cs
- BitmapEffectDrawingContextState.cs
- DatatypeImplementation.cs
- XmlDocumentSchema.cs
- ServiceHostFactory.cs
- BitmapInitialize.cs
- RequestTimeoutManager.cs
- ContentElementAutomationPeer.cs
- HttpResponseWrapper.cs
- Literal.cs
- SqlDataSourceCommandEventArgs.cs
- FigureParagraph.cs
- UserControl.cs
- TrackBarRenderer.cs
- RuleInfoComparer.cs
- ColorEditor.cs
- HttpCookiesSection.cs
- ConfigurationException.cs
- SmtpNetworkElement.cs
- ScrollProviderWrapper.cs
- PackageRelationship.cs
- ColumnResult.cs
- ExceptionRoutedEventArgs.cs
- UInt32.cs
- FontStyle.cs
- ZipIOExtraFieldZip64Element.cs
- JpegBitmapDecoder.cs
- ConvertEvent.cs
- XmlEncodedRawTextWriter.cs
- mansign.cs
- RemotingServices.cs
- columnmapfactory.cs
- Policy.cs
- PathSegment.cs
- MouseGesture.cs
- KnownColorTable.cs
- SqlGatherProducedAliases.cs
- MasterPageParser.cs
- DataGridViewTextBoxColumn.cs
- AmbientLight.cs
- RMEnrollmentPage1.cs
- UpdatePanelControlTrigger.cs
- AmbientLight.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- StreamGeometry.cs
- WindowHideOrCloseTracker.cs
- ClientFormsAuthenticationCredentials.cs
- DSASignatureDeformatter.cs
- PackageStore.cs
- SelectionItemProviderWrapper.cs
- CompilerInfo.cs
- ProfileSection.cs
- SymbolMethod.cs
- RowBinding.cs
- ItemCollection.cs
- SoapAttributes.cs
- AppliedDeviceFiltersEditor.cs
- Point3D.cs
- RestHandlerFactory.cs
- PathData.cs
- FlowNode.cs
- Rights.cs
- ArgumentDesigner.xaml.cs
- KnownTypeAttribute.cs
- XmlSerializationReader.cs
- Marshal.cs
- ConstNode.cs
- RoutedUICommand.cs
- WindowsSysHeader.cs
- TransformerTypeCollection.cs
- SmiEventStream.cs