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 / 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
- OutputScopeManager.cs
- DataObjectSettingDataEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- RelationalExpressions.cs
- AsyncContentLoadedEventArgs.cs
- SID.cs
- GPRECT.cs
- Scene3D.cs
- DataListDesigner.cs
- Random.cs
- LogRecordSequence.cs
- EntityCommandExecutionException.cs
- InvalidAsynchronousStateException.cs
- WebPartCatalogAddVerb.cs
- MinimizableAttributeTypeConverter.cs
- SQLResource.cs
- UnsafeNativeMethods.cs
- SafeSecurityHandles.cs
- Button.cs
- SelectionHighlightInfo.cs
- MeasureItemEvent.cs
- FileReader.cs
- DataGridViewLinkColumn.cs
- EmptyEnumerable.cs
- EncryptedPackage.cs
- RoutedPropertyChangedEventArgs.cs
- TextEditorCopyPaste.cs
- TextDecorationUnitValidation.cs
- VectorKeyFrameCollection.cs
- RSAOAEPKeyExchangeFormatter.cs
- ThreadAbortException.cs
- ResXResourceReader.cs
- ISO2022Encoding.cs
- _ListenerResponseStream.cs
- Win32NamedPipes.cs
- StringFunctions.cs
- UnsafeNativeMethods.cs
- WorkflowRuntimeBehavior.cs
- TextSelectionProcessor.cs
- httpapplicationstate.cs
- ReadWriteSpinLock.cs
- RegistrySecurity.cs
- recordstatescratchpad.cs
- SecurityUtils.cs
- _DomainName.cs
- AuthStoreRoleProvider.cs
- NavigationWindowAutomationPeer.cs
- WindowsRichEditRange.cs
- AuthenticationManager.cs
- GridItemPattern.cs
- EndOfStreamException.cs
- XmlFormatExtensionAttribute.cs
- VSDExceptions.cs
- ComboBoxAutomationPeer.cs
- DispatchChannelSink.cs
- RandomNumberGenerator.cs
- KeyInfo.cs
- PropagatorResult.cs
- StrokeNode.cs
- HandoffBehavior.cs
- StrongNameIdentityPermission.cs
- TransportContext.cs
- PassportAuthentication.cs
- ModelItemDictionary.cs
- HMACSHA1.cs
- X509Utils.cs
- Viewport2DVisual3D.cs
- UrlMappingsSection.cs
- MissingMethodException.cs
- OciEnlistContext.cs
- WinFormsComponentEditor.cs
- ToolStripMenuItemDesigner.cs
- WindowsSidIdentity.cs
- Compiler.cs
- TextCompositionManager.cs
- Padding.cs
- IssuedTokenServiceElement.cs
- ObjectQuery.cs
- ModelPropertyDescriptor.cs
- BaseCollection.cs
- WebControlsSection.cs
- DynamicPhysicalDiscoSearcher.cs
- SchemaConstraints.cs
- NetSectionGroup.cs
- LeftCellWrapper.cs
- IconConverter.cs
- WindowsTab.cs
- ObjectQueryExecutionPlan.cs
- XpsFilter.cs
- DocumentSequenceHighlightLayer.cs
- MobileErrorInfo.cs
- ComponentCommands.cs
- ValidationEventArgs.cs
- LogWriteRestartAreaAsyncResult.cs
- LongCountAggregationOperator.cs
- DrawTreeNodeEventArgs.cs
- SectionUpdates.cs
- DivideByZeroException.cs
- DataReaderContainer.cs
- Point3DCollection.cs