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
- XmlSchemaComplexContentExtension.cs
- CodeSnippetExpression.cs
- Rect.cs
- NullableLongMinMaxAggregationOperator.cs
- CaseCqlBlock.cs
- Decorator.cs
- BuildManagerHost.cs
- FileEnumerator.cs
- OverrideMode.cs
- printdlgexmarshaler.cs
- DefaultBinder.cs
- SafeRightsManagementEnvironmentHandle.cs
- Attributes.cs
- ClientScriptManagerWrapper.cs
- RichTextBoxDesigner.cs
- LinkButton.cs
- NamedPipeWorkerProcess.cs
- CfgRule.cs
- DropSource.cs
- PropertyCollection.cs
- CodeDefaultValueExpression.cs
- SingleStorage.cs
- ValidatorCompatibilityHelper.cs
- SQLDateTimeStorage.cs
- WasNotInstalledException.cs
- CellQuery.cs
- UserValidatedEventArgs.cs
- ISCIIEncoding.cs
- ProjectionCamera.cs
- EntityDataSourceContextDisposingEventArgs.cs
- MetafileHeaderWmf.cs
- StateBag.cs
- SessionChannels.cs
- PermissionSetTriple.cs
- BamlBinaryWriter.cs
- PropVariant.cs
- RecognitionResult.cs
- IListConverters.cs
- MethodBody.cs
- Win32Interop.cs
- DetailsViewPagerRow.cs
- HandlerWithFactory.cs
- CommandBindingCollection.cs
- DesignerInterfaces.cs
- CheckBox.cs
- ObjectItemCachedAssemblyLoader.cs
- SqlIdentifier.cs
- ChangePassword.cs
- InlineCollection.cs
- WindowsClaimSet.cs
- MultipleViewPatternIdentifiers.cs
- StringKeyFrameCollection.cs
- BuildProvider.cs
- TextRangeProviderWrapper.cs
- BrushConverter.cs
- Propagator.cs
- ExpressionBindings.cs
- FactoryGenerator.cs
- CancellationHandlerDesigner.cs
- ReadOnlyPropertyMetadata.cs
- ClientProtocol.cs
- BigInt.cs
- SystemColors.cs
- uribuilder.cs
- DesignerView.Commands.cs
- HtmlInputSubmit.cs
- TreeBuilderXamlTranslator.cs
- AnnotationAuthorChangedEventArgs.cs
- UInt64.cs
- QueryOutputWriterV1.cs
- SimplePropertyEntry.cs
- WindowsButton.cs
- XPathExpr.cs
- DBSchemaTable.cs
- SystemWebExtensionsSectionGroup.cs
- CatalogPart.cs
- NativeMethods.cs
- RegisteredHiddenField.cs
- GradientStop.cs
- MethodBody.cs
- DataControlCommands.cs
- Dictionary.cs
- SessionEndedEventArgs.cs
- DoubleLink.cs
- XhtmlTextWriter.cs
- SecurityTokenValidationException.cs
- OuterGlowBitmapEffect.cs
- HasCopySemanticsAttribute.cs
- DigestTraceRecordHelper.cs
- ResourceManagerWrapper.cs
- ScrollEvent.cs
- Helper.cs
- MimeXmlReflector.cs
- StoreItemCollection.Loader.cs
- ExceptionRoutedEventArgs.cs
- PeerResolverSettings.cs
- ManagedFilter.cs
- WebPartDescriptionCollection.cs
- MaxMessageSizeStream.cs
- ToolboxItem.cs