Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1 / LineBreakRecord.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : ghermann - created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost { // --------------------------------------------------------------------- // Break record for line - holds decoration information // --------------------------------------------------------------------- internal sealed class LineBreakRecord : UnmanagedHandle { // ------------------------------------------------------------------ // Constructor. // // PtsContext - Context // TextLineBreak - Contained line break // ----------------------------------------------------------------- internal LineBreakRecord(PtsContext ptsContext, TextLineBreak textLineBreak) : base(ptsContext) { _textLineBreak = textLineBreak; } ////// Dispose the line break /// public override void Dispose() { if(_textLineBreak != null) { _textLineBreak.Dispose(); } base.Dispose(); } #region Internal Methods ////// Clones the underlying TextLineBreak /// internal LineBreakRecord Clone() { return new LineBreakRecord(PtsContext, _textLineBreak.Clone()); } internal TextLineBreak TextLineBreak { get { return _textLineBreak; } } #endregion Internal Methods #region Private Fields private TextLineBreak _textLineBreak; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: LineBreakRecord // // Description: LineBreakRecord is unmanaged resouce handle to TextLineBreak // // History: // 06/07/2005 : ghermann - created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using MS.Internal.Text; using System.Windows.Media.TextFormatting; namespace MS.Internal.PtsHost { // --------------------------------------------------------------------- // Break record for line - holds decoration information // --------------------------------------------------------------------- internal sealed class LineBreakRecord : UnmanagedHandle { // ------------------------------------------------------------------ // Constructor. // // PtsContext - Context // TextLineBreak - Contained line break // ----------------------------------------------------------------- internal LineBreakRecord(PtsContext ptsContext, TextLineBreak textLineBreak) : base(ptsContext) { _textLineBreak = textLineBreak; } ////// Dispose the line break /// public override void Dispose() { if(_textLineBreak != null) { _textLineBreak.Dispose(); } base.Dispose(); } #region Internal Methods ////// Clones the underlying TextLineBreak /// internal LineBreakRecord Clone() { return new LineBreakRecord(PtsContext, _textLineBreak.Clone()); } internal TextLineBreak TextLineBreak { get { return _textLineBreak; } } #endregion Internal Methods #region Private Fields private TextLineBreak _textLineBreak; #endregion Private Fields } } // 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
- LazyLoadBehavior.cs
- UserControl.cs
- FixedElement.cs
- XmlHelper.cs
- PropertyChangedEventManager.cs
- TemplateParser.cs
- _AcceptOverlappedAsyncResult.cs
- FormViewModeEventArgs.cs
- TemplateEditingVerb.cs
- LayoutEvent.cs
- OdbcEnvironmentHandle.cs
- AuthenticatingEventArgs.cs
- OleDbPermission.cs
- WinInetCache.cs
- SmiGettersStream.cs
- PackWebResponse.cs
- Line.cs
- WsdlWriter.cs
- PropertyChangedEventManager.cs
- CannotUnloadAppDomainException.cs
- UnmanagedHandle.cs
- ImageField.cs
- CookieProtection.cs
- Identifier.cs
- HttpCachePolicy.cs
- SamlConditions.cs
- DataGridViewCellValidatingEventArgs.cs
- CodeGotoStatement.cs
- StorageComplexTypeMapping.cs
- ColorIndependentAnimationStorage.cs
- _Connection.cs
- WebCategoryAttribute.cs
- SimpleApplicationHost.cs
- Cloud.cs
- PageStatePersister.cs
- WindowsImpersonationContext.cs
- RegexTree.cs
- PointHitTestParameters.cs
- CommunicationObjectFaultedException.cs
- XmlQueryType.cs
- WebPartConnection.cs
- DataBindingCollectionEditor.cs
- XPathNode.cs
- FrameworkElementFactoryMarkupObject.cs
- SQLGuidStorage.cs
- SkinIDTypeConverter.cs
- WmpBitmapEncoder.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ActiveXHelper.cs
- __Filters.cs
- ExpressionVisitorHelpers.cs
- UIElementPropertyUndoUnit.cs
- NamespaceImport.cs
- PreviewPrintController.cs
- TrackingServices.cs
- FocusWithinProperty.cs
- ObjectReaderCompiler.cs
- SqlInternalConnectionSmi.cs
- ICollection.cs
- VariableQuery.cs
- ErrorRuntimeConfig.cs
- DesignDataSource.cs
- Columns.cs
- ThreadAbortException.cs
- CodeTypeReference.cs
- ContractMethodParameterInfo.cs
- Pool.cs
- SqlMultiplexer.cs
- DiscoveryExceptionDictionary.cs
- DataListCommandEventArgs.cs
- LinkUtilities.cs
- ListView.cs
- Connector.cs
- ProcessStartInfo.cs
- ScrollItemPatternIdentifiers.cs
- EditorBrowsableAttribute.cs
- UpDownEvent.cs
- DBParameter.cs
- XmlSerializerFactory.cs
- DiffuseMaterial.cs
- HttpHeaderCollection.cs
- CommonProperties.cs
- ContainerSelectorBehavior.cs
- OutputWindow.cs
- TextElementEditingBehaviorAttribute.cs
- ActivityPreviewDesigner.cs
- AnnotationHighlightLayer.cs
- TextProperties.cs
- RightsManagementPermission.cs
- SvcMapFileSerializer.cs
- ValueSerializerAttribute.cs
- ProcessMonitor.cs
- DataGridViewColumnConverter.cs
- SQLBoolean.cs
- MailHeaderInfo.cs
- KnownTypeDataContractResolver.cs
- EmptyEnumerable.cs
- ExtensionSimplifierMarkupObject.cs
- SurrogateDataContract.cs
- WebPartDisplayModeCollection.cs