Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / PtsHost / LineBreakRecord.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlHead.cs
- HttpValueCollection.cs
- XmlNamedNodeMap.cs
- ReferenceConverter.cs
- DataSourceHelper.cs
- EqualityComparer.cs
- Help.cs
- DtrList.cs
- DesignTimeType.cs
- PolicyException.cs
- EventSinkActivityDesigner.cs
- ToolStripCustomTypeDescriptor.cs
- TracePayload.cs
- AutomationPatternInfo.cs
- WebSysDescriptionAttribute.cs
- HtmlInputReset.cs
- Schema.cs
- Operand.cs
- Processor.cs
- TraceLevelHelper.cs
- CommandPlan.cs
- FrameworkContentElement.cs
- PageThemeParser.cs
- ToolStripManager.cs
- SafeLocalMemHandle.cs
- TextBoxAutoCompleteSourceConverter.cs
- NetworkInterface.cs
- EntitySqlException.cs
- FileDialogCustomPlace.cs
- DeferredElementTreeState.cs
- DataFormats.cs
- DesignerVerb.cs
- UserControlCodeDomTreeGenerator.cs
- PolicyLevel.cs
- ContextStack.cs
- ConfigXmlWhitespace.cs
- connectionpool.cs
- EntityDataSourceContextCreatedEventArgs.cs
- CodeComment.cs
- TemplateContentLoader.cs
- CallContext.cs
- JsonReaderWriterFactory.cs
- GridViewRowEventArgs.cs
- DataGridViewDataConnection.cs
- SchemaImporterExtension.cs
- SortDescriptionCollection.cs
- XmlTextReaderImplHelpers.cs
- ContactManager.cs
- XmlText.cs
- SmiXetterAccessMap.cs
- ColumnWidthChangingEvent.cs
- connectionpool.cs
- CodeGroup.cs
- ContextBase.cs
- MetadataItemEmitter.cs
- Classification.cs
- DnsCache.cs
- ContentElement.cs
- bindurihelper.cs
- XmlSchemaInclude.cs
- FormCollection.cs
- StringComparer.cs
- AssemblyFilter.cs
- configsystem.cs
- URI.cs
- RawStylusInputCustomData.cs
- FormatException.cs
- ContentFileHelper.cs
- SynchronizationContext.cs
- DataSourceDesigner.cs
- AssemblyCollection.cs
- ProviderIncompatibleException.cs
- AssociationTypeEmitter.cs
- RSACryptoServiceProvider.cs
- CompilerCollection.cs
- DateTimeOffset.cs
- CodeVariableDeclarationStatement.cs
- ComplexObject.cs
- SrgsRulesCollection.cs
- PointHitTestResult.cs
- MouseGestureConverter.cs
- InteropBitmapSource.cs
- OpenTypeCommon.cs
- FileLogRecordHeader.cs
- ToolStripGripRenderEventArgs.cs
- FieldInfo.cs
- OleServicesContext.cs
- WebColorConverter.cs
- UnsafeNativeMethods.cs
- SchemaContext.cs
- BaseDataListComponentEditor.cs
- MarshalByValueComponent.cs
- ButtonBase.cs
- NativeCppClassAttribute.cs
- ToolStripControlHost.cs
- ContentFilePart.cs
- SetterBaseCollection.cs
- HTMLTagNameToTypeMapper.cs
- XmlCharCheckingWriter.cs
- RepeaterItemCollection.cs