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
- QuadraticBezierSegment.cs
- WriterOutput.cs
- ListViewItem.cs
- KeyTimeConverter.cs
- OleDbConnection.cs
- FrameworkElement.cs
- CreateUserWizard.cs
- Simplifier.cs
- namescope.cs
- BitConverter.cs
- SqlConnectionStringBuilder.cs
- CodeDOMUtility.cs
- GlyphElement.cs
- SafeRegistryHandle.cs
- DesigntimeLicenseContext.cs
- WindowsRichEditRange.cs
- RegexGroup.cs
- EdmEntityTypeAttribute.cs
- Transform3DGroup.cs
- TraceLevelStore.cs
- UnsafeNativeMethods.cs
- TagPrefixInfo.cs
- ActiveDocumentEvent.cs
- Screen.cs
- storepermissionattribute.cs
- SafeFreeMibTable.cs
- XPathNavigator.cs
- ImageCodecInfoPrivate.cs
- WindowsSlider.cs
- QueueAccessMode.cs
- DataGridViewCellStyleBuilderDialog.cs
- KnownIds.cs
- XmlSortKeyAccumulator.cs
- DnsCache.cs
- LinkTarget.cs
- DbException.cs
- Transform3DGroup.cs
- SemanticResultKey.cs
- NeutralResourcesLanguageAttribute.cs
- ColorAnimationBase.cs
- ContentPresenter.cs
- NullableIntMinMaxAggregationOperator.cs
- WpfGeneratedKnownProperties.cs
- PolicyException.cs
- SoapConverter.cs
- FormView.cs
- DirectionalLight.cs
- SerializerWriterEventHandlers.cs
- AQNBuilder.cs
- NeedSkipTokenVisitor.cs
- MailMessage.cs
- backend.cs
- CounterSample.cs
- DataGridTextBox.cs
- VerificationException.cs
- EntityKey.cs
- FixedHighlight.cs
- RedirectionProxy.cs
- ToolStripDropDownItemDesigner.cs
- ListItemsCollectionEditor.cs
- SuppressIldasmAttribute.cs
- ListDictionaryInternal.cs
- CopyNodeSetAction.cs
- ClientBuildManager.cs
- RequestQueue.cs
- X509SecurityTokenParameters.cs
- InstalledFontCollection.cs
- Label.cs
- ExceptionRoutedEventArgs.cs
- URLMembershipCondition.cs
- DataGridViewCellPaintingEventArgs.cs
- FlowDocumentReader.cs
- Util.cs
- MenuItemAutomationPeer.cs
- DataError.cs
- UseAttributeSetsAction.cs
- CategoryNameCollection.cs
- ProtocolsConfigurationEntry.cs
- CompilationUtil.cs
- CDSsyncETWBCLProvider.cs
- WindowsListViewGroupSubsetLink.cs
- Decoder.cs
- ValidatorUtils.cs
- ZoneButton.cs
- UshortList2.cs
- MsmqProcessProtocolHandler.cs
- _AcceptOverlappedAsyncResult.cs
- MaxMessageSizeStream.cs
- IconConverter.cs
- FormsAuthenticationTicket.cs
- PersonalizationProvider.cs
- FolderBrowserDialogDesigner.cs
- _NTAuthentication.cs
- CqlBlock.cs
- SystemTcpStatistics.cs
- InputBinder.cs
- CompressedStack.cs
- LifetimeServices.cs
- XamlParser.cs
- SelectionEditor.cs