Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BufferedGraphicsContext.cs
- InputBuffer.cs
- MarshalDirectiveException.cs
- EvidenceTypeDescriptor.cs
- WebPartMenuStyle.cs
- CommandConverter.cs
- XmlSchemaSimpleContentExtension.cs
- PipelineComponent.cs
- OpCellTreeNode.cs
- DataTableReaderListener.cs
- DesignerActionPanel.cs
- CommentEmitter.cs
- DataGridHeaderBorder.cs
- Util.cs
- ResourcePermissionBaseEntry.cs
- ConnectionStringsExpressionBuilder.cs
- AudioFileOut.cs
- SpellerStatusTable.cs
- DocumentViewerHelper.cs
- GlobalId.cs
- SqlProviderUtilities.cs
- NullableConverter.cs
- XDeferredAxisSource.cs
- DbSetClause.cs
- MergeLocalizationDirectives.cs
- StylusPointProperties.cs
- LambdaCompiler.ControlFlow.cs
- HttpModuleAction.cs
- ParsedAttributeCollection.cs
- MeshGeometry3D.cs
- PenThread.cs
- ConfigurationSection.cs
- MailDefinition.cs
- CorrelationKey.cs
- ExtendedPropertyInfo.cs
- InputMethodStateChangeEventArgs.cs
- PtsPage.cs
- OleDbException.cs
- HMAC.cs
- DbExpressionBuilder.cs
- Switch.cs
- DeviceContext2.cs
- CheckBoxField.cs
- Propagator.ExtentPlaceholderCreator.cs
- WebPartExportVerb.cs
- TypefaceMap.cs
- TableHeaderCell.cs
- HttpRuntimeSection.cs
- Queue.cs
- UInt32Storage.cs
- Stacktrace.cs
- EllipticalNodeOperations.cs
- BindValidator.cs
- CommandField.cs
- CounterSetInstance.cs
- XmlNodeComparer.cs
- FontFamilyValueSerializer.cs
- DataGridViewSelectedColumnCollection.cs
- MemoryMappedFile.cs
- ResourceReferenceExpression.cs
- FileVersionInfo.cs
- DesignTimeTemplateParser.cs
- HtmlInputPassword.cs
- HighlightComponent.cs
- GridViewItemAutomationPeer.cs
- GridItemPatternIdentifiers.cs
- LogicalExpressionEditor.cs
- XmlLanguageConverter.cs
- SafeFileMappingHandle.cs
- SqlClientWrapperSmiStream.cs
- NativeMethods.cs
- DeflateStream.cs
- ObservableCollection.cs
- NativeObjectSecurity.cs
- Currency.cs
- CompositionAdorner.cs
- JpegBitmapEncoder.cs
- Literal.cs
- TagMapInfo.cs
- SessionIDManager.cs
- SmiMetaDataProperty.cs
- Brushes.cs
- VectorCollectionValueSerializer.cs
- ClockController.cs
- Button.cs
- AdCreatedEventArgs.cs
- ColorAnimationBase.cs
- ExpressionValueEditor.cs
- DescriptionAttribute.cs
- EntityReference.cs
- PagesSection.cs
- GenericIdentity.cs
- TextElement.cs
- MessageBuffer.cs
- iisPickupDirectory.cs
- ActivityInstanceMap.cs
- WebPartMenuStyle.cs
- DbProviderFactoriesConfigurationHandler.cs
- DesignBindingConverter.cs
- ContainerParaClient.cs