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
- ChildDocumentBlock.cs
- PenContexts.cs
- Matrix3DStack.cs
- HandleRef.cs
- RegexNode.cs
- PinnedBufferMemoryStream.cs
- indexingfiltermarshaler.cs
- _LoggingObject.cs
- Symbol.cs
- SqlClientWrapperSmiStream.cs
- MessageVersionConverter.cs
- UpdatableGenericsFeature.cs
- GenerateTemporaryTargetAssembly.cs
- CodeObject.cs
- MethodImplAttribute.cs
- BasePattern.cs
- ToolStripGripRenderEventArgs.cs
- EncoderParameters.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- BitVector32.cs
- HighlightVisual.cs
- RTTypeWrapper.cs
- BitmapMetadataBlob.cs
- OleDbCommandBuilder.cs
- LoginName.cs
- DesignerCategoryAttribute.cs
- SettingsSection.cs
- X509WindowsSecurityToken.cs
- AnnotationResourceCollection.cs
- ExtendedPropertyCollection.cs
- ResourceProperty.cs
- ScrollViewerAutomationPeer.cs
- EmptyEnumerable.cs
- BooleanProjectedSlot.cs
- xmlglyphRunInfo.cs
- CategoryAttribute.cs
- ImageAttributes.cs
- ErrorFormatterPage.cs
- CatalogPartCollection.cs
- XmlWhitespace.cs
- Misc.cs
- RecordsAffectedEventArgs.cs
- ContentFilePart.cs
- SQLByte.cs
- Int16.cs
- AccessViolationException.cs
- SystemDropShadowChrome.cs
- _NestedSingleAsyncResult.cs
- WindowsToolbarItemAsMenuItem.cs
- WebPartManager.cs
- ObjectDataProvider.cs
- EntityViewGenerator.cs
- JavaScriptSerializer.cs
- DockAndAnchorLayout.cs
- PeerNameRegistration.cs
- WebPartConnectionsCancelVerb.cs
- OperatorExpressions.cs
- StringUtil.cs
- DriveNotFoundException.cs
- CodeBinaryOperatorExpression.cs
- KeyNotFoundException.cs
- RepeatEnumerable.cs
- DataGridViewLinkColumn.cs
- TraceInternal.cs
- ListViewUpdateEventArgs.cs
- Subtree.cs
- TextEditorSelection.cs
- ClientScriptManagerWrapper.cs
- GridViewSelectEventArgs.cs
- CssTextWriter.cs
- CommonXSendMessage.cs
- RelationshipDetailsRow.cs
- CodeMethodReturnStatement.cs
- PropertyEntry.cs
- MexTcpBindingElement.cs
- InnerItemCollectionView.cs
- SafeCoTaskMem.cs
- SafeSecurityHandles.cs
- Subtree.cs
- SizeConverter.cs
- CatalogZone.cs
- cache.cs
- WS2007FederationHttpBindingCollectionElement.cs
- PropertyPathWorker.cs
- ProxyHwnd.cs
- SelectionHighlightInfo.cs
- SeverityFilter.cs
- StaticFileHandler.cs
- ListItemConverter.cs
- HybridObjectCache.cs
- SharedDp.cs
- NonVisualControlAttribute.cs
- VisualTransition.cs
- RuleSetDialog.cs
- WebSysDefaultValueAttribute.cs
- ClipboardProcessor.cs
- SqlProviderServices.cs
- SQLBinary.cs
- DataGrid.cs
- ClientSession.cs