Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / textformatting / TextEndOfSegment.cs / 1305600 / 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
- TextAdaptor.cs
- FileEnumerator.cs
- Action.cs
- WorkflowInstanceRecord.cs
- RelationshipFixer.cs
- DefaultBinder.cs
- ItemCollection.cs
- Transform3DGroup.cs
- InputReportEventArgs.cs
- BasePattern.cs
- ListViewItemSelectionChangedEvent.cs
- LayoutEngine.cs
- WorkflowNamespace.cs
- FormViewInsertedEventArgs.cs
- ProtocolsSection.cs
- FormClosedEvent.cs
- EdmSchemaError.cs
- XPathDescendantIterator.cs
- SoapAttributes.cs
- DataListItem.cs
- DataGridViewComboBoxColumn.cs
- DataSourceIDConverter.cs
- FtpCachePolicyElement.cs
- Buffer.cs
- TextEditorLists.cs
- EntityProviderServices.cs
- Hash.cs
- RowUpdatedEventArgs.cs
- FontWeightConverter.cs
- X509Extension.cs
- DataGridViewRowConverter.cs
- WebPartAddingEventArgs.cs
- XmlSchemaType.cs
- GuidTagList.cs
- panel.cs
- GridViewRowPresenter.cs
- RSAPKCS1SignatureDeformatter.cs
- ErasingStroke.cs
- BitmapMetadata.cs
- DocumentViewer.cs
- SecurityChannelFaultConverter.cs
- PeerNameRecordCollection.cs
- SettingsContext.cs
- DropShadowBitmapEffect.cs
- ApplicationSettingsBase.cs
- GraphicsState.cs
- MethodExpression.cs
- ReadOnlyDataSourceView.cs
- IndependentlyAnimatedPropertyMetadata.cs
- fixedPageContentExtractor.cs
- SqlProcedureAttribute.cs
- ToolboxItemAttribute.cs
- AssemblyGen.cs
- XmlLinkedNode.cs
- StateMachineExecutionState.cs
- ConfigurationLocation.cs
- ConstraintConverter.cs
- PackWebRequestFactory.cs
- TransportChannelFactory.cs
- WeakHashtable.cs
- DataGrid.cs
- SqlSupersetValidator.cs
- VersionedStreamOwner.cs
- TextRangeEditTables.cs
- MainMenu.cs
- XPathConvert.cs
- CounterCreationDataCollection.cs
- Stacktrace.cs
- Set.cs
- KeyPressEvent.cs
- FocusTracker.cs
- MobilePage.cs
- TdsParserHelperClasses.cs
- RevocationPoint.cs
- ReadContentAsBinaryHelper.cs
- KerberosReceiverSecurityToken.cs
- BrushConverter.cs
- DataSourceControlBuilder.cs
- DbParameterHelper.cs
- ObjectDataSourceSelectingEventArgs.cs
- IntSecurity.cs
- ServiceOperationWrapper.cs
- UpdateTranslator.cs
- TransformGroup.cs
- SystemInfo.cs
- ColumnHeaderConverter.cs
- NativeCppClassAttribute.cs
- AxParameterData.cs
- XmlCDATASection.cs
- DataIdProcessor.cs
- Int32CollectionValueSerializer.cs
- EntryIndex.cs
- EdmSchemaAttribute.cs
- Pair.cs
- DbMetaDataColumnNames.cs
- TextModifierScope.cs
- WebPartExportVerb.cs
- shaperfactory.cs
- CryptoHandle.cs
- Header.cs