Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / Text / MarkerProperties.cs / 1 / MarkerProperties.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: MarkerProperties.cs // // Description: Marker properties. // // History: // 06/06/2003 : [....] - created. // 07/18/2003 : [....] - converted to new Property Engine. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Documents; using System.Windows.Media.TextFormatting; using MS.Internal.PtsHost.UnsafeNativeMethods; // Relative line height from PTS namespace MS.Internal.Text { // --------------------------------------------------------------------- // Marker properties. // --------------------------------------------------------------------- internal sealed class MarkerProperties { ////// Constructor. /// ////// The listWidth parameter gives the width of the list element, and is used to clip the MarkerOffset value /// internal MarkerProperties(List list, int index) { _offset = list.MarkerOffset; // Negative value for offset because it is required by TextFormatter line box model. // If offset is NaN - default value - set it as 0.5 * line height if (Double.IsNaN(_offset)) { // Obtain list's line height to set defualt marker offsert double lineHeight = DynamicPropertyReader.GetLineHeightValue(list); _offset = - 0.5 * lineHeight; } else { _offset = -_offset; } _style = list.MarkerStyle; _index = index; } // ------------------------------------------------------------------ // GetTextMarkerProperties // ----------------------------------------------------------------- internal TextMarkerProperties GetTextMarkerProperties(TextParagraphProperties textParaProps) { return new TextSimpleMarkerProperties(_style, _offset, _index, textParaProps); } // ------------------------------------------------------------------ // Marker style // ------------------------------------------------------------------ private TextMarkerStyle _style; // ----------------------------------------------------------------- // Distance from line start to the end of the marker symbol. // ------------------------------------------------------------------ private double _offset; // ----------------------------------------------------------------- // Autonumbering counter of counter-style marker. // ----------------------------------------------------------------- private int _index; } } // 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
- FormatterConverter.cs
- DynamicEntity.cs
- SafeRightsManagementHandle.cs
- MenuAdapter.cs
- SolidColorBrush.cs
- CfgSemanticTag.cs
- FacetChecker.cs
- DiagnosticSection.cs
- TdsValueSetter.cs
- TextTreeRootNode.cs
- NamespaceTable.cs
- RtfToXamlReader.cs
- GridViewHeaderRowPresenter.cs
- MimeParameterWriter.cs
- GridViewRow.cs
- OdbcCommand.cs
- XamlLoadErrorInfo.cs
- ConfigurationStrings.cs
- SafeProcessHandle.cs
- DbConnectionOptions.cs
- AssemblyBuilder.cs
- QueryOutputWriter.cs
- ExceptionHandlers.cs
- RelationshipEntry.cs
- WebControlAdapter.cs
- HiddenFieldPageStatePersister.cs
- ValidationErrorInfo.cs
- InstanceDataCollection.cs
- NavigationWindow.cs
- ExpressionEvaluator.cs
- RepeatButtonAutomationPeer.cs
- XmlSchemaGroup.cs
- SelectionChangedEventArgs.cs
- JapaneseCalendar.cs
- WebConfigurationFileMap.cs
- SecurityDescriptor.cs
- ColumnPropertiesGroup.cs
- IndicCharClassifier.cs
- DispatchOperation.cs
- SettingsProviderCollection.cs
- PolicyStatement.cs
- DateBoldEvent.cs
- IdleTimeoutMonitor.cs
- MediaEntryAttribute.cs
- Size.cs
- Icon.cs
- LogRecordSequence.cs
- ECDsa.cs
- _HTTPDateParse.cs
- XmlSchemaImporter.cs
- WebPartEventArgs.cs
- XmlNodeChangedEventArgs.cs
- PropertyMetadata.cs
- MultipleViewProviderWrapper.cs
- DirectoryObjectSecurity.cs
- URIFormatException.cs
- PathFigureCollection.cs
- Mutex.cs
- mansign.cs
- FigureParaClient.cs
- ServiceProviders.cs
- SvcMapFile.cs
- regiisutil.cs
- SqlDependencyListener.cs
- MappingException.cs
- ContextStack.cs
- QueryStringParameter.cs
- ListBoxChrome.cs
- NotifyInputEventArgs.cs
- propertytag.cs
- TableRow.cs
- DynamicControlParameter.cs
- Size.cs
- AddressUtility.cs
- WebColorConverter.cs
- ReferencedAssembly.cs
- NoClickablePointException.cs
- UnsafeNativeMethods.cs
- FileChangesMonitor.cs
- RichTextBoxContextMenu.cs
- DesignerVerb.cs
- TypeListConverter.cs
- WorkflowServiceHost.cs
- ToggleButtonAutomationPeer.cs
- AssemblyAttributes.cs
- SoapSchemaMember.cs
- BookmarkInfo.cs
- SafeSecurityHandles.cs
- FontNamesConverter.cs
- TrackingValidationObjectDictionary.cs
- MinimizableAttributeTypeConverter.cs
- PermissionRequestEvidence.cs
- HealthMonitoringSectionHelper.cs
- Point3DConverter.cs
- _AutoWebProxyScriptWrapper.cs
- UserControl.cs
- DefaultTextStoreTextComposition.cs
- SafeMILHandle.cs
- CultureMapper.cs
- KeyedHashAlgorithm.cs