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
- SettingsProperty.cs
- mediaeventargs.cs
- StreamAsIStream.cs
- DependencyObject.cs
- DrawingAttributes.cs
- AssemblyCache.cs
- hresults.cs
- GeneralTransformGroup.cs
- ThemeDirectoryCompiler.cs
- DurableInstanceProvider.cs
- ObservableCollection.cs
- CodeRemoveEventStatement.cs
- nulltextnavigator.cs
- BitmapEffectInput.cs
- VariableDesigner.xaml.cs
- InputMethodStateTypeInfo.cs
- TraceUtils.cs
- WpfXamlType.cs
- AdornerHitTestResult.cs
- TimelineGroup.cs
- SpeechSeg.cs
- XmlNavigatorFilter.cs
- IndexedEnumerable.cs
- DataGridViewComboBoxCell.cs
- TabPage.cs
- isolationinterop.cs
- PriorityChain.cs
- WebPartCloseVerb.cs
- StrokeCollectionConverter.cs
- PriorityItem.cs
- OneToOneMappingSerializer.cs
- SqlClientMetaDataCollectionNames.cs
- basemetadatamappingvisitor.cs
- OutputCacheModule.cs
- ReflectionUtil.cs
- DisplayNameAttribute.cs
- ArrangedElement.cs
- PrintDialogException.cs
- ScalarConstant.cs
- PropertyItem.cs
- GridLengthConverter.cs
- ResourceDisplayNameAttribute.cs
- CodeSubDirectoriesCollection.cs
- GeometryGroup.cs
- RadioButtonBaseAdapter.cs
- WebPartMenu.cs
- _PooledStream.cs
- RegionData.cs
- CodeNamespaceImport.cs
- SynchronousChannel.cs
- SystemException.cs
- HtmlAnchor.cs
- SchemaImporter.cs
- CodeCommentStatement.cs
- Relationship.cs
- SerializationEventsCache.cs
- Lookup.cs
- SortedList.cs
- CDSsyncETWBCLProvider.cs
- HttpServerUtilityBase.cs
- WindowsTreeView.cs
- Stopwatch.cs
- ThreadPoolTaskScheduler.cs
- RC2.cs
- ConfigPathUtility.cs
- PropertyManager.cs
- GenericsNotImplementedException.cs
- StyleXamlParser.cs
- StringConverter.cs
- _HelperAsyncResults.cs
- Exceptions.cs
- ProviderSettingsCollection.cs
- LoginCancelEventArgs.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ItemContainerProviderWrapper.cs
- AppDomainFactory.cs
- StartFileNameEditor.cs
- HwndProxyElementProvider.cs
- AssemblyInfo.cs
- RoleServiceManager.cs
- PropertyNames.cs
- Padding.cs
- WinEventWrap.cs
- HybridCollection.cs
- CodeArrayIndexerExpression.cs
- TypeInitializationException.cs
- KeyPullup.cs
- Attribute.cs
- HtmlElementErrorEventArgs.cs
- HttpListener.cs
- XPathChildIterator.cs
- BasicExpandProvider.cs
- HtmlShim.cs
- securitymgrsite.cs
- PageParser.cs
- DragDrop.cs
- ImageMapEventArgs.cs
- MessageBox.cs
- CodeMemberProperty.cs
- OleCmdHelper.cs