Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- FileLoadException.cs
- OciEnlistContext.cs
- Encoder.cs
- AssociationSet.cs
- ObjectStorage.cs
- CellParaClient.cs
- WebServiceEnumData.cs
- BitArray.cs
- DataGridViewCheckBoxColumn.cs
- SystemIPv6InterfaceProperties.cs
- ActivityInstanceReference.cs
- ScaleTransform.cs
- PolicyException.cs
- CodeExpressionCollection.cs
- CommandLineParser.cs
- ProfileInfo.cs
- ReflectionHelper.cs
- LocalizationParserHooks.cs
- FontConverter.cs
- ByteFacetDescriptionElement.cs
- Registry.cs
- ModelItemImpl.cs
- HwndSourceParameters.cs
- EventLogPermission.cs
- BitHelper.cs
- EntityDataSourceChangingEventArgs.cs
- ServiceObjectContainer.cs
- Cursors.cs
- WindowsSpinner.cs
- XPathConvert.cs
- PrimitiveCodeDomSerializer.cs
- AsyncContentLoadedEventArgs.cs
- SelectionEditor.cs
- DES.cs
- ListBox.cs
- SplitterEvent.cs
- SqlParameterizer.cs
- SpellerHighlightLayer.cs
- Freezable.cs
- SoapTypeAttribute.cs
- DependencyObject.cs
- SignedXml.cs
- ImageFormat.cs
- HybridWebProxyFinder.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- PriorityBinding.cs
- MergablePropertyAttribute.cs
- CommandManager.cs
- XsdDataContractImporter.cs
- CallSiteOps.cs
- Baml2006KnownTypes.cs
- ListViewTableCell.cs
- ContentPropertyAttribute.cs
- HMACSHA256.cs
- SID.cs
- DataGridTextBoxColumn.cs
- ArgIterator.cs
- MouseGesture.cs
- ImportContext.cs
- Compilation.cs
- PerformanceCounterPermissionEntryCollection.cs
- XmlSchemaCompilationSettings.cs
- TimeEnumHelper.cs
- SafeWaitHandle.cs
- BitmapCodecInfoInternal.cs
- EdmComplexTypeAttribute.cs
- LOSFormatter.cs
- TextSyndicationContentKindHelper.cs
- SizeAnimation.cs
- RootAction.cs
- HostedHttpRequestAsyncResult.cs
- DataGridViewComponentPropertyGridSite.cs
- ResourceCollectionInfo.cs
- DbModificationCommandTree.cs
- LayoutEditorPart.cs
- UITypeEditor.cs
- EditorZoneAutoFormat.cs
- ReliabilityContractAttribute.cs
- BuilderInfo.cs
- RelationshipType.cs
- RouteTable.cs
- ConfigPathUtility.cs
- ScriptResourceInfo.cs
- SafeCoTaskMem.cs
- FixedPageProcessor.cs
- TypeBuilderInstantiation.cs
- ErrorActivity.cs
- ErrorProvider.cs
- MenuEventArgs.cs
- EntityParameter.cs
- ToolboxItemFilterAttribute.cs
- activationcontext.cs
- DataGrid.cs
- GroupBoxAutomationPeer.cs
- AuthenticationService.cs
- XPathPatternBuilder.cs
- AggregateNode.cs
- StreamSecurityUpgradeAcceptor.cs
- SrgsElementFactoryCompiler.cs
- SiteMapDataSourceView.cs