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
- SqlPersonalizationProvider.cs
- StringSource.cs
- RequestUriProcessor.cs
- NativeWindow.cs
- Deflater.cs
- DispatcherOperation.cs
- CommentAction.cs
- ConfigurationConverterBase.cs
- ConsoleCancelEventArgs.cs
- Signature.cs
- SubpageParaClient.cs
- SourceInterpreter.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- HtmlTable.cs
- ContainerUtilities.cs
- SqlDataSourceView.cs
- XmlSchemas.cs
- DynamicDataRoute.cs
- VisualStyleElement.cs
- ImageListImageEditor.cs
- _FixedSizeReader.cs
- FontStyles.cs
- StorageAssociationSetMapping.cs
- AutomationElementCollection.cs
- ConstraintStruct.cs
- HttpConfigurationContext.cs
- XmlAttributeCache.cs
- HiddenField.cs
- MemberAssignment.cs
- SafeArrayTypeMismatchException.cs
- DataColumnCollection.cs
- WebBrowserContainer.cs
- WebPartDescriptionCollection.cs
- ImageCodecInfoPrivate.cs
- EntityTemplateUserControl.cs
- ColumnMapCopier.cs
- OdbcParameter.cs
- MetadataFile.cs
- DateTimeUtil.cs
- SupportingTokenDuplexChannel.cs
- ThreadInterruptedException.cs
- ThicknessAnimationBase.cs
- MemberDescriptor.cs
- JavaScriptSerializer.cs
- SchemaImporter.cs
- LineSegment.cs
- BoundColumn.cs
- RenameRuleObjectDialog.cs
- DataControlCommands.cs
- InternalConfigEventArgs.cs
- TextRunCacheImp.cs
- SR.cs
- BulletDecorator.cs
- DesignBindingPicker.cs
- RequestCacheEntry.cs
- Hashtable.cs
- DecodeHelper.cs
- FileDialog.cs
- Lasso.cs
- SafeNativeMethods.cs
- ArgumentException.cs
- LOSFormatter.cs
- counter.cs
- MailDefinition.cs
- TextDecorations.cs
- RoleGroupCollection.cs
- TextSimpleMarkerProperties.cs
- AssertSection.cs
- LockCookie.cs
- ConfigurationErrorsException.cs
- OSFeature.cs
- DataControlFieldCell.cs
- HttpDebugHandler.cs
- ResolveNameEventArgs.cs
- HMACSHA512.cs
- StateDesigner.CommentLayoutGlyph.cs
- ExeContext.cs
- CollectionBuilder.cs
- ByteStack.cs
- WindowsTokenRoleProvider.cs
- SetterTriggerConditionValueConverter.cs
- BitmapInitialize.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- HtmlShimManager.cs
- SevenBitStream.cs
- Rotation3DKeyFrameCollection.cs
- ApplicationDirectory.cs
- ToolTipService.cs
- InputBinding.cs
- GridViewRowEventArgs.cs
- XpsFilter.cs
- ColumnWidthChangedEvent.cs
- listitem.cs
- XmlNullResolver.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- HandlerBase.cs
- Literal.cs
- AssemblyGen.cs
- Cursors.cs
- DeviceSpecificDesigner.cs