Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NegatedConstant.cs
- DependencyPropertyKey.cs
- NavigatorOutput.cs
- ImageSourceValueSerializer.cs
- ReflectPropertyDescriptor.cs
- BinaryQueryOperator.cs
- HwndTarget.cs
- dsa.cs
- Models.cs
- LocatorPartList.cs
- _ConnectionGroup.cs
- SpeechUI.cs
- odbcmetadatacolumnnames.cs
- TranslateTransform3D.cs
- CssStyleCollection.cs
- Parameter.cs
- DataGridCellClipboardEventArgs.cs
- DataSourceXmlSerializer.cs
- AbandonedMutexException.cs
- TraceListener.cs
- ToolStripDropDown.cs
- RemotingAttributes.cs
- CustomAssemblyResolver.cs
- InfoCardClaim.cs
- AnimationTimeline.cs
- EditingScopeUndoUnit.cs
- ViewStateException.cs
- ProfileBuildProvider.cs
- LinkArea.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- PanningMessageFilter.cs
- WindowsListViewGroupHelper.cs
- RegionInfo.cs
- TypeSystemProvider.cs
- ReferencedType.cs
- EntityDataSource.cs
- Vector3DIndependentAnimationStorage.cs
- Win32.cs
- MonitorWrapper.cs
- DelegatingMessage.cs
- SyndicationLink.cs
- BrowserCapabilitiesFactoryBase.cs
- Matrix3DConverter.cs
- TypeBinaryExpression.cs
- Vector3DCollection.cs
- SdlChannelSink.cs
- ReliableInputConnection.cs
- ToolboxDataAttribute.cs
- COMException.cs
- MetaTableHelper.cs
- StringUtil.cs
- FlowDocumentView.cs
- BamlRecordHelper.cs
- TranslateTransform3D.cs
- XslException.cs
- AsyncCallback.cs
- BoundField.cs
- SchemaNames.cs
- CorruptStoreException.cs
- XamlClipboardData.cs
- SystemColors.cs
- MdiWindowListStrip.cs
- ButtonRenderer.cs
- MethodCallConverter.cs
- UserControl.cs
- NonVisualControlAttribute.cs
- ProxyHelper.cs
- BaseCAMarshaler.cs
- EventSourceCreationData.cs
- ObjectContextServiceProvider.cs
- RoleGroup.cs
- TextEditor.cs
- Calendar.cs
- AutomationIdentifier.cs
- DoWorkEventArgs.cs
- EventlogProvider.cs
- MaskedTextProvider.cs
- TransportChannelListener.cs
- ShapingWorkspace.cs
- SmtpAuthenticationManager.cs
- XmlElementElementCollection.cs
- SqlMethodCallConverter.cs
- WebServiceClientProxyGenerator.cs
- InkSerializer.cs
- _ConnectionGroup.cs
- ValuePattern.cs
- TextEffectCollection.cs
- InvalidProgramException.cs
- SettingsPropertyValue.cs
- PrefixQName.cs
- XpsFilter.cs
- RoleManagerModule.cs
- NumberFormatInfo.cs
- CqlLexer.cs
- DataView.cs
- UIPermission.cs
- ClientProxyGenerator.cs
- IPCCacheManager.cs
- ClientSponsor.cs
- VisualBasicImportReference.cs