Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PersistenceException.cs
- Operand.cs
- InfoCardBaseException.cs
- ConfigurationException.cs
- ThrowHelper.cs
- mactripleDES.cs
- ConnectionManagementElement.cs
- ChtmlCommandAdapter.cs
- PluralizationService.cs
- DataObjectMethodAttribute.cs
- ExpressionConverter.cs
- ToolBarButton.cs
- Clipboard.cs
- AsnEncodedData.cs
- CornerRadius.cs
- ProfileSettingsCollection.cs
- ResourceDictionaryCollection.cs
- WebRequestModulesSection.cs
- BackEase.cs
- XmlNodeList.cs
- TableFieldsEditor.cs
- UpdatableWrapper.cs
- DataServiceQueryException.cs
- ConnectionPoolManager.cs
- PointAnimationClockResource.cs
- EllipseGeometry.cs
- MdiWindowListItemConverter.cs
- KeyTimeConverter.cs
- Padding.cs
- MsmqTransportSecurity.cs
- DataSourceView.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BuildResultCache.cs
- ListBox.cs
- NestedContainer.cs
- Function.cs
- ContextActivityUtils.cs
- TargetException.cs
- CodePageUtils.cs
- PropertyEmitter.cs
- DynamicDiscoveryDocument.cs
- AudioSignalProblemOccurredEventArgs.cs
- SoundPlayer.cs
- XmlAttribute.cs
- CodeSnippetStatement.cs
- DataObjectAttribute.cs
- Token.cs
- AssemblyAttributesGoHere.cs
- CollectionsUtil.cs
- CacheAxisQuery.cs
- Missing.cs
- ManipulationDeltaEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- Pool.cs
- DataGridViewSelectedColumnCollection.cs
- StructuredTypeEmitter.cs
- FatalException.cs
- DbProviderConfigurationHandler.cs
- CodeCatchClause.cs
- Hyperlink.cs
- TextElement.cs
- WebServiceTypeData.cs
- DirectoryNotFoundException.cs
- EventDescriptor.cs
- IndexedWhereQueryOperator.cs
- ConfigXmlReader.cs
- SqlDataSourceCache.cs
- FixedPageStructure.cs
- ManifestResourceInfo.cs
- TypedTableBaseExtensions.cs
- Cell.cs
- DynamicDataManager.cs
- PageHandlerFactory.cs
- SqlFormatter.cs
- ArrayExtension.cs
- JpegBitmapEncoder.cs
- WindowsContainer.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ObjectHandle.cs
- SeverityFilter.cs
- Propagator.Evaluator.cs
- OleDbDataReader.cs
- OdbcParameterCollection.cs
- EpmCustomContentDeSerializer.cs
- DataGridLinkButton.cs
- WizardForm.cs
- ResolveDuplexAsyncResult.cs
- ObjectDataSourceChooseTypePanel.cs
- DesignerCategoryAttribute.cs
- TransactionTraceIdentifier.cs
- WorkflowEventArgs.cs
- ParserStreamGeometryContext.cs
- DotAtomReader.cs
- BehaviorDragDropEventArgs.cs
- WSIdentityFaultException.cs
- DbConnectionPoolGroupProviderInfo.cs
- UInt16.cs
- ElementFactory.cs
- ConfigErrorGlyph.cs
- SqlDataSourceFilteringEventArgs.cs