Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - 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
- BamlLocalizer.cs
- StrongNameIdentityPermission.cs
- IDictionary.cs
- ListViewGroupConverter.cs
- PropertyGeneratedEventArgs.cs
- wgx_exports.cs
- SimpleHandlerBuildProvider.cs
- TargetControlTypeAttribute.cs
- FastEncoder.cs
- FullTextLine.cs
- MetadataImporter.cs
- CryptoApi.cs
- Ticks.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ResourceExpressionBuilder.cs
- MulticastNotSupportedException.cs
- Style.cs
- TraceRecords.cs
- CalendarKeyboardHelper.cs
- FeatureSupport.cs
- EnumerableRowCollectionExtensions.cs
- SystemInfo.cs
- SecurityHelper.cs
- WindowManager.cs
- Misc.cs
- TranslateTransform3D.cs
- DataViewSettingCollection.cs
- XmlAnyElementAttributes.cs
- WinEventTracker.cs
- TransactionFlowBindingElement.cs
- EncodingDataItem.cs
- JsonFormatMapping.cs
- TrackBar.cs
- XmlSerializerSection.cs
- PageHandlerFactory.cs
- streamingZipPartStream.cs
- ToolStripPanel.cs
- HwndAppCommandInputProvider.cs
- PointCollection.cs
- BlockCollection.cs
- AsymmetricSecurityProtocolFactory.cs
- TextTreeFixupNode.cs
- Helpers.cs
- InternalConfigRoot.cs
- SchemaName.cs
- MulticastDelegate.cs
- PolicyStatement.cs
- HotCommands.cs
- StringStorage.cs
- GlyphShapingProperties.cs
- TextMetrics.cs
- WebMethodAttribute.cs
- ModifiableIteratorCollection.cs
- Serializer.cs
- ServicesSection.cs
- latinshape.cs
- DeferredBinaryDeserializerExtension.cs
- AsymmetricCryptoHandle.cs
- ObjectDataSourceMethodEventArgs.cs
- ObjectDataProvider.cs
- Panel.cs
- JavaScriptString.cs
- BaseTemplateCodeDomTreeGenerator.cs
- LogConverter.cs
- embossbitmapeffect.cs
- PageAsyncTaskManager.cs
- SID.cs
- DataBindEngine.cs
- XPathParser.cs
- CatalogPartChrome.cs
- SRDisplayNameAttribute.cs
- InputScopeManager.cs
- WebServiceMethodData.cs
- URLIdentityPermission.cs
- TopClause.cs
- OleDbPermission.cs
- DbModificationCommandTree.cs
- SmtpNetworkElement.cs
- OrderedDictionaryStateHelper.cs
- TableAutomationPeer.cs
- DockEditor.cs
- CheckBoxField.cs
- XamlClipboardData.cs
- Propagator.Evaluator.cs
- ColumnResult.cs
- CompilationUtil.cs
- PaperSize.cs
- GeometryCombineModeValidation.cs
- FormViewUpdatedEventArgs.cs
- RoutingService.cs
- AdRotator.cs
- DisplayInformation.cs
- ToolStripContainer.cs
- WeakReferenceList.cs
- ConfigXmlComment.cs
- util.cs
- MeasureItemEvent.cs
- WebPartHeaderCloseVerb.cs
- D3DImage.cs
- ColumnWidthChangingEvent.cs