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
- TypedTableBaseExtensions.cs
- ServiceMetadataPublishingElement.cs
- ChangeBlockUndoRecord.cs
- UTF7Encoding.cs
- __ConsoleStream.cs
- WebConfigurationHostFileChange.cs
- PropertyDescriptorComparer.cs
- AnnotationHelper.cs
- SafeBitVector32.cs
- SqlNamer.cs
- ItemsControl.cs
- WindowsListViewGroupHelper.cs
- ClearTypeHintValidation.cs
- ApplicationFileParser.cs
- DynamicMetaObjectBinder.cs
- NotFiniteNumberException.cs
- Type.cs
- ByteConverter.cs
- KeyInstance.cs
- reliableinputsessionchannel.cs
- DbDataSourceEnumerator.cs
- VirtualPath.cs
- CollectionBase.cs
- CodeAccessSecurityEngine.cs
- ISAPIApplicationHost.cs
- ConstNode.cs
- Rectangle.cs
- ClientTargetCollection.cs
- DataGridColumnsPage.cs
- WebPartExportVerb.cs
- XmlReaderDelegator.cs
- MaskInputRejectedEventArgs.cs
- BaseDataList.cs
- SqlNode.cs
- BindingExpressionUncommonField.cs
- FilePrompt.cs
- elementinformation.cs
- FormViewUpdatedEventArgs.cs
- Section.cs
- CacheAxisQuery.cs
- AvtEvent.cs
- WebPartConnectionsCancelVerb.cs
- SyndicationContent.cs
- NameObjectCollectionBase.cs
- XmlLinkedNode.cs
- ListView.cs
- ClientSettingsStore.cs
- OleStrCAMarshaler.cs
- ImageDrawing.cs
- WebPartVerb.cs
- DataGridAddNewRow.cs
- FrameworkPropertyMetadata.cs
- PeerEndPoint.cs
- CacheDependency.cs
- future.cs
- DrawingVisualDrawingContext.cs
- IODescriptionAttribute.cs
- Misc.cs
- QuotedPairReader.cs
- XmlNavigatorStack.cs
- ThreadNeutralSemaphore.cs
- ConfigXmlText.cs
- Point.cs
- TreeWalker.cs
- Int16.cs
- Light.cs
- SByte.cs
- AdornerPresentationContext.cs
- XmlSerializationWriter.cs
- DefaultPropertyAttribute.cs
- DataGridViewSelectedColumnCollection.cs
- DeploymentSectionCache.cs
- EntityConnectionStringBuilder.cs
- WebPartDescription.cs
- IntegerFacetDescriptionElement.cs
- KeyboardNavigation.cs
- WebPartConnectionCollection.cs
- ServiceOperationWrapper.cs
- Inflater.cs
- CharacterMetrics.cs
- Internal.cs
- DataGridViewColumnStateChangedEventArgs.cs
- XamlContextStack.cs
- HttpWebResponse.cs
- ExtenderProvidedPropertyAttribute.cs
- TextEditorTables.cs
- InfoCard.cs
- Visitors.cs
- Claim.cs
- LogRecordSequence.cs
- ImagingCache.cs
- FeatureSupport.cs
- TypeSemantics.cs
- Trace.cs
- DocumentsTrace.cs
- Menu.cs
- EntityRecordInfo.cs
- StrokeCollectionDefaultValueFactory.cs
- ElementMarkupObject.cs
- MenuItemAutomationPeer.cs