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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EFColumnProvider.cs
- PointCollection.cs
- Range.cs
- QfeChecker.cs
- CodeSubDirectory.cs
- AnimationTimeline.cs
- MLangCodePageEncoding.cs
- DocumentOrderComparer.cs
- WinEventWrap.cs
- ByteStreamGeometryContext.cs
- BitStack.cs
- TouchesOverProperty.cs
- FixedDocument.cs
- documentsequencetextview.cs
- EndpointDiscoveryBehavior.cs
- MetadataSection.cs
- TableLayoutPanelCellPosition.cs
- TemplateBamlTreeBuilder.cs
- BufferedReceiveElement.cs
- RectangleF.cs
- KeyedHashAlgorithm.cs
- PathStreamGeometryContext.cs
- keycontainerpermission.cs
- StylusPointPropertyUnit.cs
- SqlRewriteScalarSubqueries.cs
- MarkupCompiler.cs
- assemblycache.cs
- CodeNamespaceImport.cs
- InvokeHandlers.cs
- AutomationFocusChangedEventArgs.cs
- DataBoundLiteralControl.cs
- ICspAsymmetricAlgorithm.cs
- ThreadStaticAttribute.cs
- DbMetaDataColumnNames.cs
- StateRuntime.cs
- SettingsPropertyValueCollection.cs
- Group.cs
- ApplicationInfo.cs
- XmlNodeReader.cs
- SmtpNegotiateAuthenticationModule.cs
- StrokeDescriptor.cs
- StorageScalarPropertyMapping.cs
- DynamicEntity.cs
- CasesDictionary.cs
- ObjectDataSourceMethodEditor.cs
- RayHitTestParameters.cs
- Range.cs
- MatrixTransform3D.cs
- EventItfInfo.cs
- FastPropertyAccessor.cs
- ButtonField.cs
- TabItem.cs
- DataListCommandEventArgs.cs
- AttributedMetaModel.cs
- RoutingConfiguration.cs
- Parsers.cs
- EventLogEntryCollection.cs
- RuntimeCompatibilityAttribute.cs
- RSAPKCS1SignatureDeformatter.cs
- SqlStream.cs
- AsmxEndpointPickerExtension.cs
- DrawingContext.cs
- Or.cs
- InvalidDataException.cs
- WebPartZone.cs
- CompositeCollection.cs
- TextCompositionEventArgs.cs
- SByteConverter.cs
- DrawingContextWalker.cs
- SizeChangedInfo.cs
- ConfigXmlAttribute.cs
- HTTPNotFoundHandler.cs
- TimeSpanParse.cs
- ColumnHeaderCollectionEditor.cs
- DataBoundControlDesigner.cs
- SymLanguageType.cs
- TableHeaderCell.cs
- Filter.cs
- AppDomainUnloadedException.cs
- XamlRtfConverter.cs
- ErrorEventArgs.cs
- GradientStop.cs
- BamlMapTable.cs
- SafeMILHandle.cs
- DateTimeFormatInfoScanner.cs
- UIHelper.cs
- PropertyChangedEventManager.cs
- X509ChainElement.cs
- IsolatedStorageFile.cs
- XmlDocumentSchema.cs
- BoundField.cs
- ExeContext.cs
- HashCodeCombiner.cs
- DeadCharTextComposition.cs
- OleDbException.cs
- HttpWebRequest.cs
- RegexRunnerFactory.cs
- Properties.cs
- WindowsScrollBar.cs
- UriSectionReader.cs