Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TreeIterators.cs
- EntityUtil.cs
- Clock.cs
- FileDataSourceCache.cs
- ByteRangeDownloader.cs
- NamespaceTable.cs
- ChangeNode.cs
- MediaSystem.cs
- DataGridViewToolTip.cs
- ContextMenuAutomationPeer.cs
- ClientTargetCollection.cs
- NegotiateStream.cs
- PopOutPanel.cs
- DateTimePicker.cs
- UriTemplateMatch.cs
- WebPartsPersonalizationAuthorization.cs
- C14NUtil.cs
- MemberCollection.cs
- KeyConstraint.cs
- FormViewPageEventArgs.cs
- EmptyEnumerable.cs
- WpfMemberInvoker.cs
- WebPartsPersonalization.cs
- HttpDateParse.cs
- DecoderNLS.cs
- ClientUtils.cs
- Line.cs
- ZoneLinkButton.cs
- odbcmetadatafactory.cs
- GenerateTemporaryTargetAssembly.cs
- MetadataFile.cs
- XmlSchemaAnnotation.cs
- InstanceDescriptor.cs
- XsdDataContractExporter.cs
- DataSourceControlBuilder.cs
- PartitionResolver.cs
- OperatorExpressions.cs
- RightsManagementInformation.cs
- RenderOptions.cs
- FigureHelper.cs
- HttpProfileGroupBase.cs
- SchemaMapping.cs
- AppDomainProtocolHandler.cs
- RemotingConfigParser.cs
- CodeTypeDeclarationCollection.cs
- StrongNamePublicKeyBlob.cs
- DataTableNewRowEvent.cs
- PeerContact.cs
- TextParagraph.cs
- PageSetupDialog.cs
- MimeMultiPart.cs
- ByteStack.cs
- TextSpan.cs
- BooleanAnimationBase.cs
- TextEditorTables.cs
- ToolStripPanelSelectionGlyph.cs
- LifetimeManager.cs
- SimpleMailWebEventProvider.cs
- RenameRuleObjectDialog.cs
- XAMLParseException.cs
- SupportingTokenSecurityTokenResolver.cs
- PrintDialogDesigner.cs
- BuildManager.cs
- ServicesUtilities.cs
- DataGridViewButtonColumn.cs
- CancellationState.cs
- ServiceContractGenerator.cs
- EncoderReplacementFallback.cs
- AutoGeneratedField.cs
- TemplateBindingExtension.cs
- DataPagerFieldCommandEventArgs.cs
- SplitterCancelEvent.cs
- ProcessHostConfigUtils.cs
- Paragraph.cs
- WindowsPen.cs
- Interop.cs
- ArithmeticLiteral.cs
- PropertyGeneratedEventArgs.cs
- CategoryGridEntry.cs
- CodeDirectoryCompiler.cs
- GridViewRowEventArgs.cs
- ParallelLoopState.cs
- LinkUtilities.cs
- RouteCollection.cs
- WorkflowInstance.cs
- PeerToPeerException.cs
- Paragraph.cs
- TableLayoutPanelBehavior.cs
- CollectionContainer.cs
- WS2007FederationHttpBinding.cs
- QueryContinueDragEvent.cs
- Vector3DKeyFrameCollection.cs
- SizeConverter.cs
- ConnectionStringsExpressionBuilder.cs
- ObjectContext.cs
- NegotiationTokenAuthenticatorStateCache.cs
- CacheSection.cs
- RequestSecurityToken.cs
- DeferredElementTreeState.cs
- JapaneseLunisolarCalendar.cs