Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextEndOfSegment.cs / 1 / TextEndOfSegment.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEndOfSegment.cs // // Contents: Text modification API // // Spec: http://avalon/text/DesignDocsAndSpecs/Text%20Formatting%20API.doc // // Created: 12-5-2004 Niklas Borson (niklasb) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; using System.Windows.Media; 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 segment, i.e., to end /// the scope affected by a preceding TextModifier run. /// public class TextEndOfSegment : TextRun { private int _length; #region Constructors ////// Construct an end of segment run /// /// number of characters public TextEndOfSegment(int length) { if (length <= 0) throw new ArgumentOutOfRangeException("length", SR.Get(SRID.ParameterMustBeGreaterThanZero)); _length = length; } #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 null; } } } } // 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, 2001 // // File: TextEndOfSegment.cs // // Contents: Text modification API // // Spec: http://avalon/text/DesignDocsAndSpecs/Text%20Formatting%20API.doc // // Created: 12-5-2004 Niklas Borson (niklasb) // //----------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; using System.Windows.Media; 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 segment, i.e., to end /// the scope affected by a preceding TextModifier run. /// public class TextEndOfSegment : TextRun { private int _length; #region Constructors ////// Construct an end of segment run /// /// number of characters public TextEndOfSegment(int length) { if (length <= 0) throw new ArgumentOutOfRangeException("length", SR.Get(SRID.ParameterMustBeGreaterThanZero)); _length = length; } #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 null; } } } } // 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
- ObjectDataProvider.cs
- IntSecurity.cs
- SQLInt16Storage.cs
- Stylesheet.cs
- RectangleHotSpot.cs
- StylusSystemGestureEventArgs.cs
- IpcChannelHelper.cs
- ChannelAcceptor.cs
- FatalException.cs
- Contracts.cs
- ParseHttpDate.cs
- EntityDataSourceStatementEditorForm.cs
- AssemblyInfo.cs
- SqlInfoMessageEvent.cs
- AnnotationMap.cs
- TaiwanCalendar.cs
- Enum.cs
- FamilyMap.cs
- PersistStreamTypeWrapper.cs
- PageScaling.cs
- TextEditorMouse.cs
- PrimaryKeyTypeConverter.cs
- ResourceSetExpression.cs
- NativeObjectSecurity.cs
- EventMemberCodeDomSerializer.cs
- InstanceLockTracking.cs
- Closure.cs
- TypeReference.cs
- DoubleLink.cs
- PropVariant.cs
- HyperLinkDataBindingHandler.cs
- PropertyBuilder.cs
- GridViewEditEventArgs.cs
- PrtCap_Public_Simple.cs
- OnOperation.cs
- SystemIPInterfaceStatistics.cs
- ShaderEffect.cs
- ContextStack.cs
- SqlNotificationRequest.cs
- LoginUtil.cs
- RequestQueue.cs
- Normalization.cs
- WindowsScrollBar.cs
- MessageFault.cs
- DataGridViewCellParsingEventArgs.cs
- SecurityDocument.cs
- MaskInputRejectedEventArgs.cs
- MasterPageBuildProvider.cs
- ConnectAlgorithms.cs
- Set.cs
- HtmlControl.cs
- AccessDataSource.cs
- CustomTrackingQuery.cs
- List.cs
- SQLInt64Storage.cs
- SqlLiftWhereClauses.cs
- RawStylusInput.cs
- CodeAttributeDeclaration.cs
- BitmapFrame.cs
- PrintPreviewGraphics.cs
- ConnectionsZone.cs
- _UncName.cs
- FixedPageAutomationPeer.cs
- ellipse.cs
- ExpressionPrinter.cs
- URLIdentityPermission.cs
- ISessionStateStore.cs
- EventLogEntry.cs
- SqlCacheDependencyDatabaseCollection.cs
- MissingMemberException.cs
- DataContractSerializerSection.cs
- CapabilitiesState.cs
- TypeDescriptionProvider.cs
- JournalEntryListConverter.cs
- MouseOverProperty.cs
- CodeVariableDeclarationStatement.cs
- Error.cs
- WebPartPersonalization.cs
- IItemProperties.cs
- StreamUpgradeInitiator.cs
- COAUTHIDENTITY.cs
- Assert.cs
- EnumerableValidator.cs
- DesignTimeParseData.cs
- HttpCookie.cs
- ListSourceHelper.cs
- ToolStripRenderEventArgs.cs
- DataGridItemEventArgs.cs
- DataGridViewColumnConverter.cs
- PartialArray.cs
- followingquery.cs
- EncoderNLS.cs
- _IPv4Address.cs
- StructuredTypeEmitter.cs
- DataServiceHost.cs
- OutputCacheSettings.cs
- LocatorManager.cs
- PropertyChangedEventManager.cs
- SessionStateContainer.cs
- BitmapEffectCollection.cs