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
- Model3D.cs
- Viewport3DVisual.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ServiceParser.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- HttpCookiesSection.cs
- FieldToken.cs
- GetPageCompletedEventArgs.cs
- IndexerNameAttribute.cs
- SmiEventSink.cs
- URL.cs
- EventDescriptor.cs
- PanelContainerDesigner.cs
- TrimSurroundingWhitespaceAttribute.cs
- AbstractSvcMapFileLoader.cs
- SqlDataSourceTableQuery.cs
- SystemIdentity.cs
- SecurityKeyIdentifier.cs
- RequestCachePolicy.cs
- TiffBitmapDecoder.cs
- LinkedResourceCollection.cs
- AffineTransform3D.cs
- MenuItemAutomationPeer.cs
- MenuItemBindingCollection.cs
- EdmComplexPropertyAttribute.cs
- ActiveXContainer.cs
- NetMsmqBinding.cs
- ClientCredentials.cs
- Timer.cs
- TypeDescriptor.cs
- Int32Rect.cs
- MergeLocalizationDirectives.cs
- MsmqIntegrationBindingElement.cs
- PrivateFontCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- XmlValidatingReaderImpl.cs
- DependencyProperty.cs
- Int32Storage.cs
- MissingSatelliteAssemblyException.cs
- arc.cs
- UIElement3DAutomationPeer.cs
- CompositeDataBoundControl.cs
- HttpCapabilitiesBase.cs
- ReturnValue.cs
- StringUtil.cs
- FacetValues.cs
- ScrollChangedEventArgs.cs
- DbConnectionPoolOptions.cs
- ReferencedCollectionType.cs
- Blend.cs
- PrintController.cs
- EraserBehavior.cs
- ObjectDataSourceFilteringEventArgs.cs
- XPathNodeIterator.cs
- NamedElement.cs
- SqlDataSourceCache.cs
- DefaultIfEmptyQueryOperator.cs
- GeometryModel3D.cs
- SolidBrush.cs
- CompiledXpathExpr.cs
- OleTxTransaction.cs
- BrowserDefinitionCollection.cs
- TypeConverter.cs
- ImplicitInputBrush.cs
- ArraySortHelper.cs
- RetrieveVirtualItemEventArgs.cs
- MSAAWinEventWrap.cs
- GeometryDrawing.cs
- ParamArrayAttribute.cs
- WebCategoryAttribute.cs
- XmlQueryType.cs
- TrustManagerMoreInformation.cs
- SiteMembershipCondition.cs
- EndPoint.cs
- PersonalizationStateInfoCollection.cs
- StdRegProviderWrapper.cs
- FillErrorEventArgs.cs
- ListViewDeletedEventArgs.cs
- nulltextcontainer.cs
- GenerateScriptTypeAttribute.cs
- XmlExpressionDumper.cs
- RedirectionProxy.cs
- SqlProviderServices.cs
- SingleObjectCollection.cs
- Sql8ExpressionRewriter.cs
- XmlElement.cs
- SqlGenericUtil.cs
- CodeDomSerializationProvider.cs
- OnOperation.cs
- HwndProxyElementProvider.cs
- StrokeNodeEnumerator.cs
- WindowsGraphicsCacheManager.cs
- DataServiceRequestException.cs
- AssociationEndMember.cs
- TemplatePartAttribute.cs
- TextBoxLine.cs
- FixedPage.cs
- KeyPressEvent.cs
- OciEnlistContext.cs
- ColorTransform.cs