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
- GcHandle.cs
- ProfileModule.cs
- DirectoryNotFoundException.cs
- PropertyItem.cs
- WindowsStatusBar.cs
- TailCallAnalyzer.cs
- AvTraceFormat.cs
- Rect3D.cs
- Clock.cs
- FlowchartDesigner.Helpers.cs
- XamlHostingConfiguration.cs
- SqlParameterizer.cs
- NotCondition.cs
- Parser.cs
- GeometryHitTestResult.cs
- DefaultPropertyAttribute.cs
- SoapSchemaExporter.cs
- ColumnPropertiesGroup.cs
- EventDescriptor.cs
- PrivateFontCollection.cs
- ThreadPool.cs
- ByteStreamGeometryContext.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataServiceHostFactory.cs
- TreeWalkHelper.cs
- RowToParametersTransformer.cs
- TrackingProfileSerializer.cs
- MergeLocalizationDirectives.cs
- OracleException.cs
- FillBehavior.cs
- ToolStripDropTargetManager.cs
- InputProcessorProfilesLoader.cs
- TransformerConfigurationWizardBase.cs
- ErrorLog.cs
- DbConnectionPoolIdentity.cs
- QuadTree.cs
- ErrorRuntimeConfig.cs
- DynamicEndpoint.cs
- KeyManager.cs
- SqlDataSourceCache.cs
- ReferenceEqualityComparer.cs
- SoapProtocolReflector.cs
- counter.cs
- WindowsFormsHostAutomationPeer.cs
- SqlXmlStorage.cs
- PolicyValidationException.cs
- CacheModeConverter.cs
- Duration.cs
- Transform3DGroup.cs
- UserNameSecurityTokenParameters.cs
- SqlExpressionNullability.cs
- ScriptManagerProxy.cs
- SafeRightsManagementSessionHandle.cs
- ParentControlDesigner.cs
- ListViewContainer.cs
- ObjectContextServiceProvider.cs
- LogWriteRestartAreaState.cs
- ByteStorage.cs
- sitestring.cs
- XmlnsDictionary.cs
- EdgeModeValidation.cs
- Oid.cs
- ConfigurationValue.cs
- DispatchWrapper.cs
- CodeDomSerializer.cs
- SafeRegistryKey.cs
- parserscommon.cs
- SmtpClient.cs
- XmlWrappingWriter.cs
- DLinqColumnProvider.cs
- NetworkInformationException.cs
- COM2ComponentEditor.cs
- SQLDecimal.cs
- Predicate.cs
- PathNode.cs
- CodeDOMProvider.cs
- BrushConverter.cs
- WhitespaceRuleReader.cs
- CodeStatementCollection.cs
- BindingExpressionBase.cs
- DispatcherExceptionFilterEventArgs.cs
- SizeConverter.cs
- NumberAction.cs
- MSAAWinEventWrap.cs
- TextFormatterHost.cs
- AnnotationAuthorChangedEventArgs.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- PersistenceProviderElement.cs
- RegexWorker.cs
- CollectionViewGroupRoot.cs
- FormViewDeletedEventArgs.cs
- SmiMetaDataProperty.cs
- PageRequestManager.cs
- StringSource.cs
- ResourceWriter.cs
- UpDownEvent.cs
- BufferCache.cs
- SerializationInfoEnumerator.cs
- BevelBitmapEffect.cs
- PointHitTestParameters.cs