Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1305600 / 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
- DebugTrace.cs
- AutomationTextAttribute.cs
- ApplicationContext.cs
- XmlSiteMapProvider.cs
- MimeTypeAttribute.cs
- GeometryCollection.cs
- DataTableMappingCollection.cs
- LinqDataSource.cs
- TypeConvertions.cs
- Hyperlink.cs
- DataListCommandEventArgs.cs
- CharacterMetricsDictionary.cs
- FormatException.cs
- ProxyWebPartManager.cs
- Paragraph.cs
- SizeAnimation.cs
- TextCompositionEventArgs.cs
- Parser.cs
- CollectionsUtil.cs
- ExclusiveCanonicalizationTransform.cs
- ClickablePoint.cs
- Journaling.cs
- RuleSetDialog.cs
- DoubleLink.cs
- GroupBox.cs
- TextBounds.cs
- SizeChangedInfo.cs
- ZoneMembershipCondition.cs
- MethodExpression.cs
- VirtualizingStackPanel.cs
- ConnectionProviderAttribute.cs
- PartitionedDataSource.cs
- PropertyReferenceSerializer.cs
- QilList.cs
- SqlVisitor.cs
- StreamWithDictionary.cs
- UnknownWrapper.cs
- XmlSerializerVersionAttribute.cs
- InputProcessorProfilesLoader.cs
- ExtensionSimplifierMarkupObject.cs
- ServiceHandle.cs
- XmlStreamStore.cs
- GuidTagList.cs
- CodeTypeOfExpression.cs
- InputScopeAttribute.cs
- DesignerTransactionCloseEvent.cs
- Vector3dCollection.cs
- SqlCharStream.cs
- NativeMethods.cs
- AesManaged.cs
- HtmlSelectionListAdapter.cs
- ObjectDataSourceDisposingEventArgs.cs
- RequestCachingSection.cs
- SchemaTableOptionalColumn.cs
- NetSectionGroup.cs
- TraceData.cs
- VersionConverter.cs
- TextFindEngine.cs
- ConfigurationLockCollection.cs
- SqlMethods.cs
- ErrorWrapper.cs
- ReceiveActivityDesignerTheme.cs
- SqlDataSourceView.cs
- ContentDisposition.cs
- AttributeTable.cs
- SelectedCellsCollection.cs
- WebPartDisplayModeCollection.cs
- TimeStampChecker.cs
- ConfigXmlText.cs
- ObjectItemLoadingSessionData.cs
- SlotInfo.cs
- AstTree.cs
- SqlClientPermission.cs
- StrongName.cs
- DataGridViewControlCollection.cs
- SQLBytes.cs
- UiaCoreApi.cs
- COAUTHINFO.cs
- ConfigXmlReader.cs
- JoinSymbol.cs
- GenericWebPart.cs
- PropertyDescriptor.cs
- BridgeDataReader.cs
- ServerIdentity.cs
- WindowsListViewGroupHelper.cs
- MatrixTransform.cs
- DataGridViewRowConverter.cs
- SoapCommonClasses.cs
- TimeSpan.cs
- ZipFileInfo.cs
- XPathNodeIterator.cs
- MessageQueueConverter.cs
- BindingValueChangedEventArgs.cs
- FixedHighlight.cs
- ListDictionaryInternal.cs
- ClientRuntimeConfig.cs
- DescendentsWalker.cs
- CharacterMetrics.cs
- PtsPage.cs
- ButtonBaseAutomationPeer.cs