Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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
- AgileSafeNativeMemoryHandle.cs
- TextContainerChangedEventArgs.cs
- ErrorStyle.cs
- Rfc2898DeriveBytes.cs
- TableSectionStyle.cs
- AdornerHitTestResult.cs
- ListViewDeletedEventArgs.cs
- VirtualPathUtility.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- TrueReadOnlyCollection.cs
- XPathMultyIterator.cs
- ClosableStream.cs
- ClientConfigurationHost.cs
- ResponseStream.cs
- CheckBoxPopupAdapter.cs
- ReferenceTypeElement.cs
- StylusPlugin.cs
- ErrorStyle.cs
- CommandConverter.cs
- RightsManagementManager.cs
- IndexOutOfRangeException.cs
- PageVisual.cs
- CodePageUtils.cs
- DataGridColumnCollectionEditor.cs
- TraceContextRecord.cs
- MailWebEventProvider.cs
- PhysicalAddress.cs
- MenuScrollingVisibilityConverter.cs
- _AcceptOverlappedAsyncResult.cs
- Delay.cs
- WindowsListBox.cs
- JsonReader.cs
- Assert.cs
- ButtonFieldBase.cs
- WindowsRichEditRange.cs
- ScaleTransform.cs
- ProfileModule.cs
- DataRelationPropertyDescriptor.cs
- EventWaitHandle.cs
- GifBitmapDecoder.cs
- SystemFonts.cs
- SignatureToken.cs
- FixedSOMPage.cs
- ConnectionsZone.cs
- VolatileEnlistmentState.cs
- Function.cs
- TimeSpanFormat.cs
- RadialGradientBrush.cs
- COM2IDispatchConverter.cs
- TextServicesManager.cs
- PreservationFileReader.cs
- WebPartZoneCollection.cs
- RoleBoolean.cs
- ListArgumentProvider.cs
- StructuralType.cs
- RectangleGeometry.cs
- Content.cs
- TraceData.cs
- MatrixTransform.cs
- AvTrace.cs
- DbConnectionStringBuilder.cs
- ClientUtils.cs
- SqlDataSourceQuery.cs
- MimeParameters.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TriggerBase.cs
- MSAAEventDispatcher.cs
- CssStyleCollection.cs
- SectionXmlInfo.cs
- mactripleDES.cs
- NodeFunctions.cs
- TimeZone.cs
- TextTreeRootTextBlock.cs
- GridViewDeletedEventArgs.cs
- ParameterCollection.cs
- DetailsViewUpdatedEventArgs.cs
- DrawingContext.cs
- DataGridViewAccessibleObject.cs
- processwaithandle.cs
- SafeRightsManagementQueryHandle.cs
- XXXInfos.cs
- PixelFormat.cs
- TraceListeners.cs
- HelpKeywordAttribute.cs
- GetPageNumberCompletedEventArgs.cs
- ExpressionEditorAttribute.cs
- Menu.cs
- ToolStripDropTargetManager.cs
- ResourceReader.cs
- XmlQueryStaticData.cs
- UnsafePeerToPeerMethods.cs
- ColumnResult.cs
- TransformCollection.cs
- TreeNodeConverter.cs
- PrimaryKeyTypeConverter.cs
- FastEncoderWindow.cs
- AvTrace.cs
- AppSettingsSection.cs
- PathStreamGeometryContext.cs
- Profiler.cs