Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / System / Windows / Ink / KnownIds.cs / 1305600 / KnownIds.cs
using System; using System.Collections; using System.IO; using MS.Internal.Ink.InkSerializedFormat; namespace System.Windows.Ink { ////// public static class DrawingAttributeIds { ///DrawingAttributeIds ////// public static readonly Guid Color = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.ColorRef]; ///[To be supplied.] ////// Guid identifying the StylusTip /// public static readonly Guid StylusTip = new Guid(0x3526c731, 0xee79, 0x4988, 0xb9, 0x3e, 0x70, 0xd9, 0x2f, 0x89, 0x7, 0xed); ////// Guid identifying the StylusTipTransform /// public static readonly Guid StylusTipTransform = new Guid(0x4b63bc16, 0x7bc4, 0x4fd2, 0x95, 0xda, 0xac, 0xff, 0x47, 0x75, 0x73, 0x2d); ////// public static readonly Guid StylusHeight = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusHeight]; ///The height of the pen tip which affects the stroke rendering. ////// public static readonly Guid StylusWidth = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusWidth]; ///The width of the pen tip which affects the stroke rendering. ////// public static readonly Guid DrawingFlags = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.DrawingFlags]; ///[To be supplied.] ////// Guid identifying IsHighlighter /// public static readonly Guid IsHighlighter = new Guid(0xce305e1a, 0xe08, 0x45e3, 0x8c, 0xdc, 0xe4, 0xb, 0xb4, 0x50, 0x6f, 0x21); } ////// internal static class KnownIds { #region Public Ids ///[To be supplied.] ////// internal static readonly Guid X = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.X]; ///[To be supplied.] ////// internal static readonly Guid Y = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Y]; ///[To be supplied.] ////// internal static readonly Guid Z = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Z]; ///[To be supplied.] ////// internal static readonly Guid PacketStatus = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PacketStatus]; ///[To be supplied.] ////// internal static readonly Guid TimerTick = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TimerTick]; ///[To be supplied.] ////// internal static readonly Guid SerialNumber = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.SerialNumber]; ///[To be supplied.] ////// internal static readonly Guid NormalPressure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.NormalPressure]; ///[To be supplied.] ////// internal static readonly Guid TangentPressure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TangentPressure]; ///[To be supplied.] ////// internal static readonly Guid ButtonPressure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.ButtonPressure]; ///[To be supplied.] ////// internal static readonly Guid XTiltOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.XTiltOrientation]; ///[To be supplied.] ////// internal static readonly Guid YTiltOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.YTiltOrientation]; ///[To be supplied.] ////// internal static readonly Guid AzimuthOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.AzimuthOrientation]; ///[To be supplied.] ////// internal static readonly Guid AltitudeOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.AltitudeOrientation]; ///[To be supplied.] ////// internal static readonly Guid TwistOrientation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TwistOrientation]; ///[To be supplied.] ////// internal static readonly Guid PitchRotation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PitchRotation]; ///[To be supplied.] ////// internal static readonly Guid RollRotation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.RollRotation]; ///[To be supplied.] ////// internal static readonly Guid YawRotation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.YawRotation]; ///[To be supplied.] ////// internal static readonly Guid Color = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.ColorRef]; ///[To be supplied.] ////// internal static readonly Guid DrawingFlags = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.DrawingFlags]; ///[To be supplied.] ////// internal static readonly Guid CursorId = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CursorId]; ///[To be supplied.] ////// internal static readonly Guid WordAlternates = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.WordAlternates]; ///[To be supplied.] ////// internal static readonly Guid CharacterAlternates = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CharAlternates]; ///[To be supplied.] ////// internal static readonly Guid InkMetrics = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.InkMetrics]; ///[To be supplied.] ////// internal static readonly Guid GuideStructure = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.GuideStructure]; ///[To be supplied.] ////// internal static readonly Guid Timestamp = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Timestamp]; ///[To be supplied.] ////// internal static readonly Guid Language = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Language]; ///[To be supplied.] ////// internal static readonly Guid Transparency = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.Transparency]; ///[To be supplied.] ////// internal static readonly Guid CurveFittingError = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CurveFittingError]; ///[To be supplied.] ////// internal static readonly Guid RecognizedLattice = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.RecoLattice]; ///[To be supplied.] ////// internal static readonly Guid CursorDown = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.CursorDown]; ///[To be supplied.] ////// internal static readonly Guid SecondaryTipSwitch = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.SecondaryTipSwitch]; ///[To be supplied.] ////// internal static readonly Guid TabletPick = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.TabletPick]; ///[To be supplied.] ////// internal static readonly Guid BarrelDown = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.BarrelDown]; ///[To be supplied.] ////// internal static readonly Guid RasterOperation = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.RasterOperation]; ///[To be supplied.] ////// internal static readonly Guid StylusHeight = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusHeight]; ///The height of the pen tip which affects the stroke rendering. ////// internal static readonly Guid StylusWidth = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.StylusWidth]; ///The width of the pen tip which affects the stroke rendering. ////// Guid identifying the highlighter property /// internal static readonly Guid Highlighter = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.Highlighter]; ////// Guid identifying the Ink properties /// internal static readonly Guid InkProperties = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkProperties]; ////// Guid identifying the Ink Style bold property /// internal static readonly Guid InkStyleBold = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkStyleBold]; ////// Guid identifying the ink style italics property /// internal static readonly Guid InkStyleItalics = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkStyleItalics]; ////// Guid identifying the stroke timestamp property /// internal static readonly Guid StrokeTimestamp = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.StrokeTimestamp]; ////// Guid identifying the stroke timeid property /// internal static readonly Guid StrokeTimeId = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.StrokeTimeId]; ////// Guid identifying the StylusTip /// internal static readonly Guid StylusTip = new Guid(0x3526c731, 0xee79, 0x4988, 0xb9, 0x3e, 0x70, 0xd9, 0x2f, 0x89, 0x7, 0xed); ////// Guid identifying the StylusTipTransform /// internal static readonly Guid StylusTipTransform = new Guid(0x4b63bc16, 0x7bc4, 0x4fd2, 0x95, 0xda, 0xac, 0xff, 0x47, 0x75, 0x73, 0x2d); ////// Guid identifying IsHighlighter /// internal static readonly Guid IsHighlighter = new Guid(0xce305e1a, 0xe08, 0x45e3, 0x8c, 0xdc, 0xe4, 0xb, 0xb4, 0x50, 0x6f, 0x21); // ///// /// Guid used for identifying the fill-brush for rendering a stroke. // /// // public static readonly Guid FillBrush = new Guid(0x9a547c5c, 0x1fff, 0x4987, 0x8a, 0xb6, 0xbe, 0xed, 0x75, 0xde, 0xa, 0x1d); // // ///// /// Guid used for identifying the pen used for rendering a stroke's outline. // /// // public static readonly Guid OutlinePen = new Guid(0x9967aea6, 0x3980, 0x4337, 0xb7, 0xc6, 0x34, 0xa, 0x33, 0x98, 0x8e, 0x6b); // // ///// /// Guid used for identifying the blend mode used for rendering a stroke (similar to ROP in v1). // /// // public static readonly Guid BlendMode = new Guid(0xd6993943, 0x7a84, 0x4a80, 0x84, 0x68, 0xa8, 0x3c, 0xca, 0x65, 0xb0, 0x5); // // ///// /// Guid used for identifying StylusShape object // /// // public static readonly Guid StylusShape = new Guid(0xf998e7f8, 0x7cdb, 0x4c0e, 0xb2, 0xe2, 0x63, 0x2b, 0xca, 0x21, 0x2a, 0x7b); #endregion #region Internal Ids ////// internal static readonly Guid PenStyle = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PenStyle]; ///The style of the rendering used for the pen tip. ////// internal static readonly Guid PenTip = KnownIdCache.OriginalISFIdTable[(int)KnownIdCache.OriginalISFIdIndex.PenTip]; ///The shape of the tip of the pen used for stroke rendering. ////// Guid used for identifying the Custom Stroke /// ///NTRAID#T2-17751-2003/11/26-[....]: SPECISSUE: Should we hide the CustomStrokes and StrokeLattice data? internal static readonly Guid InkCustomStrokes = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkCustomStrokes]; ////// Guid used for identifying the Stroke Lattice /// internal static readonly Guid InkStrokeLattice = KnownIdCache.TabletInternalIdTable[(int)KnownIdCache.TabletInternalIdIndex.InkStrokeLattice]; #if UNDO_ENABLED ////// Guid used for identifying if an undo/event has already been handled /// ///{053BF717-DBE7-4e52-805E-64906138FAAD} internal static readonly Guid UndoEventArgsHandled = new Guid(0x53bf717, 0xdbe7, 0x4e52, 0x80, 0x5e, 0x64, 0x90, 0x61, 0x38, 0xfa, 0xad); #endif #endregion #region Known Id Helpers private static System.Reflection.MemberInfo[] PublicMemberInfo = null; internal static string ConvertToString (Guid id) { // Assert Reflection permissions shouldn't be required since we are only accessing public members if (null == PublicMemberInfo) { PublicMemberInfo = typeof(KnownIds).FindMembers(System.Reflection.MemberTypes.Field, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.GetField | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Default, null, null); } foreach (System.Reflection.MemberInfo info in PublicMemberInfo) { if ( id == (Guid)typeof(KnownIds).InvokeMember(info.Name, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.GetField | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Default, null, null, new object[]{}, System.Globalization.CultureInfo.InvariantCulture) ) { return info.Name; } } return id.ToString(); } #endregion } } // 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
- TextEncodedRawTextWriter.cs
- BuildResultCache.cs
- ValidationErrorEventArgs.cs
- PresentationTraceSources.cs
- DuplicateWaitObjectException.cs
- PageRequestManager.cs
- CompilerErrorCollection.cs
- TextElementEnumerator.cs
- Query.cs
- WebPartConnectionsCancelEventArgs.cs
- PriorityBindingExpression.cs
- Pipe.cs
- TextServicesManager.cs
- ScaleTransform3D.cs
- DayRenderEvent.cs
- BaseProcessProtocolHandler.cs
- NegotiateStream.cs
- ModuleConfigurationInfo.cs
- SchemaTableOptionalColumn.cs
- FamilyCollection.cs
- WebConfigurationManager.cs
- DataPagerFieldCommandEventArgs.cs
- HtmlControlPersistable.cs
- MissingSatelliteAssemblyException.cs
- FlowDocumentPageViewerAutomationPeer.cs
- RemotingSurrogateSelector.cs
- ObjectManager.cs
- webproxy.cs
- MsdtcWrapper.cs
- ConstantExpression.cs
- ModuleElement.cs
- DataTableReaderListener.cs
- DbMetaDataFactory.cs
- BamlResourceDeserializer.cs
- SmtpNegotiateAuthenticationModule.cs
- AliasedSlot.cs
- SqlCacheDependencyDatabaseCollection.cs
- PrePrepareMethodAttribute.cs
- MappingModelBuildProvider.cs
- OleDbPropertySetGuid.cs
- RelationshipEnd.cs
- XmlAnyElementAttributes.cs
- BufferedOutputAsyncStream.cs
- DynamicDataManager.cs
- PageAsyncTaskManager.cs
- Substitution.cs
- TextSelectionProcessor.cs
- InvariantComparer.cs
- ScrollData.cs
- Conditional.cs
- DesignerActionItem.cs
- ListView.cs
- XmlCompatibilityReader.cs
- ServiceConfigurationTraceRecord.cs
- WindowCollection.cs
- DbConnectionPoolCounters.cs
- HierarchicalDataSourceControl.cs
- CommandSet.cs
- securestring.cs
- GridViewRowEventArgs.cs
- ListViewTableCell.cs
- SchemaTypeEmitter.cs
- ClockController.cs
- KeyboardDevice.cs
- VBIdentifierName.cs
- Emitter.cs
- TextEditorThreadLocalStore.cs
- WinHttpWebProxyFinder.cs
- MessageQueuePermission.cs
- DetailsViewModeEventArgs.cs
- TextClipboardData.cs
- QuaternionKeyFrameCollection.cs
- TextEndOfSegment.cs
- DataSourceControlBuilder.cs
- RenderDataDrawingContext.cs
- MethodExecutor.cs
- ObjectComplexPropertyMapping.cs
- ZoneIdentityPermission.cs
- ConnectionInterfaceCollection.cs
- NCryptSafeHandles.cs
- BaseTreeIterator.cs
- SQLCharsStorage.cs
- AlignmentYValidation.cs
- Viewport2DVisual3D.cs
- InkCanvasFeedbackAdorner.cs
- precedingquery.cs
- DocComment.cs
- DriveInfo.cs
- PackageProperties.cs
- MetricEntry.cs
- Point4D.cs
- CompositeKey.cs
- HttpApplicationFactory.cs
- CollaborationHelperFunctions.cs
- CrossSiteScriptingValidation.cs
- InputLanguageManager.cs
- TraceInternal.cs
- FixedDocumentSequencePaginator.cs
- OpenTypeMethods.cs
- TiffBitmapDecoder.cs