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
- SendingRequestEventArgs.cs
- DynamicILGenerator.cs
- XsdValidatingReader.cs
- DataConnectionHelper.cs
- DispatcherObject.cs
- WebPartUserCapability.cs
- CqlLexer.cs
- RepeaterItemCollection.cs
- CompoundFileStorageReference.cs
- DataConnectionHelper.cs
- SignerInfo.cs
- OdbcConnectionOpen.cs
- ShapingWorkspace.cs
- MobileControlsSectionHelper.cs
- EdmScalarPropertyAttribute.cs
- TaskScheduler.cs
- MyContact.cs
- XPathEmptyIterator.cs
- InvalidCastException.cs
- ToolStripMenuItem.cs
- ExpressionDumper.cs
- DataGridViewCellMouseEventArgs.cs
- TextTreeExtractElementUndoUnit.cs
- serverconfig.cs
- TraceHelpers.cs
- CodeExporter.cs
- BooleanConverter.cs
- DynamicPhysicalDiscoSearcher.cs
- GridViewColumnHeaderAutomationPeer.cs
- LoadedEvent.cs
- Effect.cs
- CodeAssignStatement.cs
- AssertValidation.cs
- SpeakInfo.cs
- RegexWorker.cs
- UpdateRecord.cs
- Schema.cs
- WindowsListViewGroup.cs
- PixelFormat.cs
- DataGridViewAdvancedBorderStyle.cs
- RoutedEventValueSerializer.cs
- WorkflowItemPresenter.cs
- PowerModeChangedEventArgs.cs
- NameValueFileSectionHandler.cs
- WsdlHelpGeneratorElement.cs
- GroupItem.cs
- ImpersonationContext.cs
- FieldTemplateUserControl.cs
- SQLInt16.cs
- MenuEventArgs.cs
- ReachSerializableProperties.cs
- CharacterMetricsDictionary.cs
- DbParameterHelper.cs
- ToolStripScrollButton.cs
- StreamSecurityUpgradeProvider.cs
- ProviderConnectionPoint.cs
- DefaultExpression.cs
- Util.cs
- CodeDomLocalizationProvider.cs
- _SpnDictionary.cs
- XPathAxisIterator.cs
- DataPager.cs
- Aggregates.cs
- NetworkAddressChange.cs
- TransformerInfo.cs
- CompositeCollection.cs
- BinaryUtilClasses.cs
- MessageHeaderException.cs
- DataGridHyperlinkColumn.cs
- EntityDataSourceUtil.cs
- ConditionalBranch.cs
- CharStorage.cs
- NotifyCollectionChangedEventArgs.cs
- InspectionWorker.cs
- FixedPage.cs
- ErasingStroke.cs
- DataTableExtensions.cs
- ColorMatrix.cs
- TemplateInstanceAttribute.cs
- SqlDependencyUtils.cs
- PropertyInfoSet.cs
- LOSFormatter.cs
- DBParameter.cs
- CallbackException.cs
- PropertyGeneratedEventArgs.cs
- GeneratedCodeAttribute.cs
- FrameworkRichTextComposition.cs
- AsyncDataRequest.cs
- ClientTarget.cs
- DragEventArgs.cs
- DesignerValidatorAdapter.cs
- HtmlInputRadioButton.cs
- SqlTransaction.cs
- SelectionEditingBehavior.cs
- HttpFileCollection.cs
- CommonDialog.cs
- PathGeometry.cs
- OraclePermissionAttribute.cs
- DataConnectionHelper.cs
- PermissionSet.cs